Fix a race in creating the BootstrapSandboxManager.
commit99ae0d0d7b7ff7b1b191fedf1a52351e42a6061a
authorrsesek <rsesek@chromium.org>
Mon, 21 Sep 2015 16:01:09 +0000 (21 09:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 21 Sep 2015 16:01:51 +0000 (21 16:01 +0000)
treea786219b2156260ab9e54d33f29939404c4acf58
parentba0c914038ce8aac2e1bf6248d160cf4f9eff99c
Fix a race in creating the BootstrapSandboxManager.

Move the first access of the singleton to be earlier in BrowserMainLoop, from
BrowserThreadsStarted to PostMainMessageLoopStart. This ensures that the object
is constructed on the UI thread, rather than on the ProcessLauncherThread (when
the GPU process is started).

BUG=501128
R=avi@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#349936}
content/browser/browser_main_loop.cc