Index: components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
diff --git a/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc b/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
index 606843ccd02ec4d0eece6dc8029e6f766a838e75..a9598dfa702a978cf56d3550502688e7e1e7843c 100644 |
--- a/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
+++ b/components/dom_distiller/content/browser/distiller_page_web_contents_browsertest.cc |
@@ -6,10 +6,13 @@ |
#include <utility> |
+#include "base/location.h" |
#include "base/memory/weak_ptr.h" |
#include "base/path_service.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "base/threading/thread_task_runner_handle.h" |
#include "base/values.h" |
#include "build/build_config.h" |
#include "components/dom_distiller/content/browser/distiller_javascript_utils.h" |
@@ -409,7 +412,7 @@ IN_PROC_BROWSER_TEST_F(DistillerPageWebContentsTest, |
delete distiller_page_; |
// Make sure the test ends when it does not crash. |
- base::MessageLoop::current()->PostDelayedTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
FROM_HERE, run_loop.QuitClosure(), base::TimeDelta::FromSeconds(2)); |
run_loop.Run(); |