Index: content/public/test/mock_render_process_host.cc |
diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc |
index dd10d04b7a4aa6c85e0f5871465730bed760fca9..451eefe2e821da013bce47d2fa775eeb777027d8 100644 |
--- a/content/public/test/mock_render_process_host.cc |
+++ b/content/public/test/mock_render_process_host.cc |
@@ -9,8 +9,10 @@ |
#include <vector> |
#include "base/lazy_instance.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
#include "base/process/process_handle.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "base/time/time.h" |
#include "content/browser/child_process_security_policy_impl.h" |
#include "content/browser/renderer_host/render_process_host_impl.h" |
@@ -210,7 +212,7 @@ void MockRenderProcessHost::Cleanup() { |
FOR_EACH_OBSERVER(RenderProcessHostObserver, |
observers_, |
RenderProcessHostDestroyed(this)); |
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
RenderProcessHostImpl::UnregisterHost(GetID()); |
deletion_callback_called_ = true; |
} |