Index: base/message_loop/message_loop_unittest.cc |
diff --git a/base/message_loop/message_loop_unittest.cc b/base/message_loop/message_loop_unittest.cc |
index f7b583061bb140cfddf5bfa55c1cba291492c6f5..97b7da7764093a2046ee25fb7b4a34209e1c7842 100644 |
--- a/base/message_loop/message_loop_unittest.cc |
+++ b/base/message_loop/message_loop_unittest.cc |
@@ -456,7 +456,7 @@ void RunTest_RecursiveSupport2(MessageLoop::Type message_loop_type) { |
void PostNTasksThenQuit(int posts_remaining) { |
if (posts_remaining > 1) { |
- MessageLoop::current()->task_runner()->PostTask( |
+ ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, Bind(&PostNTasksThenQuit, posts_remaining - 1)); |
} else { |
MessageLoop::current()->QuitWhenIdle(); |
@@ -872,7 +872,7 @@ TEST(MessageLoopTest, ThreadMainTaskRunner) { |
&Foo::Test1ConstRef, foo, a)); |
// Post quit task; |
- MessageLoop::current()->task_runner()->PostTask( |
+ ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, |
Bind(&MessageLoop::QuitWhenIdle, Unretained(MessageLoop::current()))); |