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

Unified Diff: chrome/browser/browser_shutdown.cc

Issue 150181: Adds some debugging code in hopes of tracking down a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | « base/id_map.h ('k') | chrome/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: chrome/browser/browser_shutdown.cc
===================================================================
--- chrome/browser/browser_shutdown.cc (revision 19754)
+++ chrome/browser/browser_shutdown.cc (working copy)
@@ -65,6 +65,7 @@
// a no-op in some cases, so we still need to go through the normal
// shutdown path for the ones that didn't exit here.
shutdown_num_processes_slow_ = 0;
+ size_t start_rph_size = RenderProcessHost::size();
for (RenderProcessHost::iterator hosts = RenderProcessHost::begin();
hosts != RenderProcessHost::end();
++hosts) {
@@ -74,6 +75,9 @@
// higher up, it's not possible to get here. Confirm this and change
// FastShutdownIfPossible to just be FastShutdown.
shutdown_num_processes_slow_++;
+ // The number of RPHs should not have changed as the result of invoking
+ // FastShutdownIfPossible.
+ CHECK(start_rph_size == RenderProcessHost::size());
}
}
}
« no previous file with comments | « base/id_map.h ('k') | chrome/browser/renderer_host/render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698