Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index ed9a1c728c1d2bd805f0194c3008e55146ee7324..7a872b4ec330f6c3d1297f2ee0b0b38bfeb44d85 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -39,6 +39,7 @@ |
#include "base/sys_info.h" |
#include "base/threading/thread.h" |
#include "base/threading/thread_restrictions.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "base/trace_event/trace_event.h" |
#include "base/tracked_objects.h" |
#include "build/build_config.h" |
@@ -1890,7 +1891,7 @@ void RenderProcessHostImpl::Cleanup() { |
#ifndef NDEBUG |
is_self_deleted_ = true; |
#endif |
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
deleting_soon_ = true; |
#if USE_ATTACHMENT_BROKER |