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..7b7a529b0158608c0bced21e1cea9a54d892b017 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -38,6 +38,7 @@ |
#include "content/browser/plugin_service_impl.h" |
#include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
#include "content/browser/renderer_host/media/media_stream_manager.h" |
+#include "content/browser/renderer_host/render_process_host_impl.h" |
#include "content/browser/speech/speech_recognition_manager_impl.h" |
#include "content/browser/startup_task_runner.h" |
#include "content/browser/tracing/trace_controller_impl.h" |
@@ -740,10 +741,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()) |
+ RenderProcessHostImpl::ShutDownInProcessRenderer(); |
if (parts_) { |
TRACE_EVENT0("shutdown", |