diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-11 04:49:32 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-11 04:49:32 +0000 |
commit | 2cb3e6c67ad02e3bf137f74493d28f74ca772527 (patch) | |
tree | 3ae1f2d61d63816c0d178ec210f240d237c5a10a /content/browser/browser_main.cc | |
parent | 6a73623445e3938c767ac4c56849035b22be5c28 (diff) | |
download | chromium_src-2cb3e6c67ad02e3bf137f74493d28f74ca772527.zip chromium_src-2cb3e6c67ad02e3bf137f74493d28f74ca772527.tar.gz chromium_src-2cb3e6c67ad02e3bf137f74493d28f74ca772527.tar.bz2 |
Assert that new renderer processes aren't created during shutdown.
Puts CHECKs in RenderProcessHost's constructor to make sure the main MessageLoop hasn't stopped running yet.
BUG=91398
TEST=none
Review URL: http://codereview.chromium.org/8210004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104849 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_main.cc')
-rw-r--r-- | content/browser/browser_main.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/browser_main.cc b/content/browser/browser_main.cc index ace9579..1e9fb29 100644 --- a/content/browser/browser_main.cc +++ b/content/browser/browser_main.cc @@ -252,6 +252,8 @@ void BrowserMainParts::MainMessageLoopStart() { PostMainMessageLoopStart(); } +static bool g_exited_main_message_loop = false; + void BrowserMainParts::RunMainMessageLoopParts() { PreMainMessageLoopRun(); @@ -262,6 +264,8 @@ void BrowserMainParts::RunMainMessageLoopParts() { MainMessageLoopRun(); TRACE_EVENT_END_ETW("BrowserMain:MESSAGE_LOOP", 0, ""); + g_exited_main_message_loop = true; + PostMainMessageLoopRun(); } @@ -357,6 +361,10 @@ void BrowserMainParts::PostMainMessageLoopRun() { void BrowserMainParts::ToolkitInitialized() { } +bool ExitedMainMessageLoop() { + return g_exited_main_message_loop; +} + } // namespace content // Main routine for running as the Browser process. |