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

Unified Diff: content/browser/browser_main_loop.cc

Issue 72203003: Introduce RenderProcessHostObserver, use it in its first client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: release mode Created 7 years, 1 month 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
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 3addee33ee6aec88ac6cc611dc0e7d5bd86b05d1..d8585f1dd3b802f58b90418ce9ed2a5d07c7bd47 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -740,10 +740,8 @@ void BrowserMainLoop::ShutdownThreadsAndCleanUp() {
base::Bind(base::IgnoreResult(&base::ThreadRestrictions::SetIOAllowed),
true));
- if (RenderProcessHost::run_renderer_in_process() &&
- !RenderProcessHost::AllHostsIterator().IsAtEnd()) {
- delete RenderProcessHost::AllHostsIterator().GetCurrentValue();
- }
+ if (RenderProcessHost::run_renderer_in_process())
+ RenderProcessHost::ShutDownInProcessRenderer();
if (parts_) {
TRACE_EVENT0("shutdown",

Powered by Google App Engine
This is Rietveld 408576698