Mojo JS standalone app launches files specified with mojo_shell command-line args
commit17d76b85d2e3939c428bfbfa2edce4bdcfd3be90
authorhansmuller <hansmuller@chromium.org>
Fri, 3 Oct 2014 14:59:54 +0000 (3 07:59 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Oct 2014 15:00:14 +0000 (3 15:00 +0000)
tree29cf59f218040dbdfd1f9ad827ace35d5255a4ae
parent80eba8a3bb221ff97c38e395fbf3f47423014b43
Mojo JS standalone app launches files specified with mojo_shell command-line args

Arguments specified with the mojo_js_standalone app URL are loaded and run. Each argument is run on a separate thread, in its own V8 isolate. For example:

  mojo_shell 'mojo:mojo_js_standalone foo.js bar.js'

Also: moved the one-time gin V8 initialization from JSApp - where it could be called from multiple threads - to ApplicationDelegateImpl::Initialize(). Where it's called once, before any JSApp's are started.

BUG=419906

Review URL: https://codereview.chromium.org/627563002

Cr-Commit-Position: refs/heads/master@{#298032}
mojo/apps/js/application_delegate_impl.cc
mojo/apps/js/js_app.cc
mojo/apps/js/standalone_main.cc