Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(993)

Unified Diff: content/browser/browser_main.cc

Issue 8210004: Assert that new renderer processes aren't created during shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_main.h ('k') | content/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main.cc
diff --git a/content/browser/browser_main.cc b/content/browser/browser_main.cc
index ace957938dd60d0831b59dff35ee7dbcaa217354..1e9fb29040d98a1fc4dbcbce003561395cededbd 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.
« no previous file with comments | « content/browser/browser_main.h ('k') | content/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698