Index: components/dom_distiller/content/browser/distillable_page_utils_android.cc |
diff --git a/components/dom_distiller/content/browser/distillable_page_utils_android.cc b/components/dom_distiller/content/browser/distillable_page_utils_android.cc |
index 84abf2d71732a341e45438ff5f745687e0ad87f0..8ba1281b88ca5b250a3389545672f136e4b23a98 100644 |
--- a/components/dom_distiller/content/browser/distillable_page_utils_android.cc |
+++ b/components/dom_distiller/content/browser/distillable_page_utils_android.cc |
@@ -7,7 +7,9 @@ |
#include <memory> |
#include "base/bind.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "components/dom_distiller/content/browser/distillable_page_utils.h" |
#include "content/public/browser/web_contents.h" |
#include "jni/DistillablePageUtils_jni.h" |
@@ -46,7 +48,7 @@ static void IsPageDistillable(JNIEnv* env, |
callback_holder->Reset(env, callback); |
if (!web_contents) { |
- base::MessageLoop::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(OnIsPageDistillableResult, |
base::Passed(&callback_holder), false)); |
return; |