Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Unified Diff: components/dom_distiller/content/test/dom_distiller_js_browsertest.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/content/test/dom_distiller_js_browsertest.cc
diff --git a/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc b/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc
index 6d26962ac9340a5bbe6c5628c573948bfbc503ae..2bfb501b759e7086181a893f6f1e16dbcdf34897 100644
--- a/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc
+++ b/components/dom_distiller/content/test/dom_distiller_js_browsertest.cc
@@ -3,11 +3,13 @@
// found in the LICENSE file.
#include "base/callback.h"
+#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop.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/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/dom_distiller/content/web_contents_main_frame_observer.h"
@@ -117,7 +119,7 @@ IN_PROC_BROWSER_TEST_F(DomDistillerJsTest, RunJsTests) {
js_test_execution_done_callback_ = run_loop.QuitClosure();
// Add timeout in case JS Test execution fails. It is safe to call the
// QuitClosure multiple times.
- base::MessageLoop::current()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, run_loop.QuitClosure(), base::TimeDelta::FromSeconds(15));
web_contents->GetMainFrame()->ExecuteJavaScript(
base::UTF8ToUTF16(kRunJsTestsJs),
« no previous file with comments | « components/dom_distiller/content/distillable_page_utils.cc ('k') | components/dom_distiller/core/distilled_content_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698