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

Unified Diff: content/browser/renderer_host/render_process_host.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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host.cc
diff --git a/content/browser/renderer_host/render_process_host.cc b/content/browser/renderer_host/render_process_host.cc
index 8ab4e9b09dbeefefc15cea48a1073e759a2901b9..abb16806b4d22284dd1275cb4cd01050ccf6783c 100644
--- a/content/browser/renderer_host/render_process_host.cc
+++ b/content/browser/renderer_host/render_process_host.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/rand_util.h"
#include "base/sys_info.h"
+#include "content/browser/browser_main.h"
#include "content/browser/browser_thread.h"
#include "content/browser/child_process_security_policy.h"
#include "content/browser/content_browser_client.h"
@@ -100,6 +101,7 @@ RenderProcessHost::RenderProcessHost(content::BrowserContext* browser_context)
browser_context_(browser_context),
sudden_termination_allowed_(true),
ignore_input_events_(false) {
+ CHECK(!content::ExitedMainMessageLoop());
all_hosts.AddWithID(this, id());
all_hosts.set_check_on_null_data(true);
// Initialize |child_process_activity_time_| to a reasonable value.
« no previous file with comments | « content/browser/browser_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698