Index: components/dom_distiller/core/fake_distiller.cc |
diff --git a/components/dom_distiller/core/fake_distiller.cc b/components/dom_distiller/core/fake_distiller.cc |
index 8211032fc9f08af8adfe55ab6d338e8c06a78f66..85aee15a3c9910e5129e060185a8b47db75099d2 100644 |
--- a/components/dom_distiller/core/fake_distiller.cc |
+++ b/components/dom_distiller/core/fake_distiller.cc |
@@ -7,7 +7,9 @@ |
#include "base/auto_reset.h" |
#include "base/bind.h" |
#include "base/callback_helpers.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace dom_distiller { |
@@ -70,11 +72,9 @@ void FakeDistiller::RunDistillerUpdateCallback( |
void FakeDistiller::PostDistillerCallback( |
scoped_ptr<DistilledArticleProto> proto) { |
- base::MessageLoop::current()->PostTask( |
- FROM_HERE, |
- base::Bind(&FakeDistiller::RunDistillerCallbackInternal, |
- base::Unretained(this), |
- base::Passed(&proto))); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, base::Bind(&FakeDistiller::RunDistillerCallbackInternal, |
+ base::Unretained(this), base::Passed(&proto))); |
} |
void FakeDistiller::RunDistillerCallbackInternal( |