[Mojo] Remove static "bootstrap" state in mojo_js

This CL removes the static static in boostrap.cc that we used to transfer the
initial handle from C++ into JavaScript. Rather that storing the initial handle
in static state and evaling some script to kick off the loading process, we now
use an API to load a module by name and then pass the initial handle to the
function defined by that module.

This CL paves the say for adding threading support to mojo_js. The previous
static approach didn't scale to multiple threads, but the approach in this CL
does. I'll actually add the API to create a thread in the next CL.

R=aa@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237647 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: f503f94c1b224d7e4edbd68577f59f23e2cc7009
7 files changed
tree: 44c807d59334dd9cb0926e445fdb81a5497f68da
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. mojo/
  7. testing/
  8. third_party/
  9. ui/