Index: ipc/mojo/ipc_channel_mojo_unittest.cc |
diff --git a/ipc/mojo/ipc_channel_mojo_unittest.cc b/ipc/mojo/ipc_channel_mojo_unittest.cc |
index 40187153724a656b0d05c8c46e15d2118fa2338d..53c6ecfd04d0a59ae7e3902c6c6fa5ed2cd89abe 100644 |
--- a/ipc/mojo/ipc_channel_mojo_unittest.cc |
+++ b/ipc/mojo/ipc_channel_mojo_unittest.cc |
@@ -6,11 +6,13 @@ |
#include "base/base_paths.h" |
#include "base/files/file.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
#include "base/path_service.h" |
#include "base/pickle.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/test/test_timeouts.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/threading/thread.h" |
#include "ipc/ipc_message.h" |
#include "ipc/ipc_test_base.h" |
@@ -79,7 +81,8 @@ class ChannelClient { |
channel_->Close(); |
base::RunLoop run_loop; |
- base::MessageLoop::current()->PostTask(FROM_HERE, run_loop.QuitClosure()); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, |
+ run_loop.QuitClosure()); |
run_loop.Run(); |
} |