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

Unified Diff: content/browser/renderer_host/browser_render_process_host.cc

Issue 7864019: Fix a race in BrowserRenderProcessHost::FastShutdownIfPossible (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/renderer_host/browser_render_process_host.h ('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/browser_render_process_host.cc
===================================================================
--- content/browser/renderer_host/browser_render_process_host.cc (revision 100701)
+++ content/browser/renderer_host/browser_render_process_host.cc (working copy)
@@ -653,6 +653,7 @@
return false;
child_process_launcher_.reset();
+ ProcessDied();
fast_shutdown_started_ = true;
return true;
}
@@ -802,6 +803,10 @@
}
void BrowserRenderProcessHost::OnChannelError() {
+ ProcessDied();
+}
+
+void BrowserRenderProcessHost::ProcessDied() {
// Our child process has died. If we didn't expect it, it's a crash.
// In any case, we need to let everyone know it's gone.
// The OnChannelError notification can fire multiple times due to nested sync
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698