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

Unified Diff: components/dom_distiller/standalone/content_extractor_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
« no previous file with comments | « components/dom_distiller/core/task_tracker.cc ('k') | components/domain_reliability/context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/standalone/content_extractor_browsertest.cc
diff --git a/components/dom_distiller/standalone/content_extractor_browsertest.cc b/components/dom_distiller/standalone/content_extractor_browsertest.cc
index b9766f6885fa2d005197fa5d2d1a3fbdbe7f3f05..a5f620781b430fdbefec0813484deeb03f9e319f 100644
--- a/components/dom_distiller/standalone/content_extractor_browsertest.cc
+++ b/components/dom_distiller/standalone/content_extractor_browsertest.cc
@@ -7,11 +7,13 @@
#include "base/command_line.h"
#include "base/files/scoped_temp_dir.h"
#include "base/id_map.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/path_service.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
+#include "base/thread_task_runner_handle.h"
#include "components/dom_distiller/content/distiller_page_web_contents.h"
#include "components/dom_distiller/core/article_entry.h"
#include "components/dom_distiller/core/distilled_page_prefs.h"
@@ -284,9 +286,8 @@ class ContentExtractionRequest : public ViewRequestDelegate {
void OnArticleReady(const DistilledArticleProto* article_proto) override {
article_proto_ = article_proto;
CHECK(article_proto->pages_size()) << "Failed extracting " << url_;
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- finished_callback_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ finished_callback_);
}
const DistilledArticleProto* article_proto_;
@@ -397,7 +398,7 @@ class ContentExtractor : public ContentBrowserTest {
DoArticleOutput();
requests_.clear();
service_.reset();
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
}
« no previous file with comments | « components/dom_distiller/core/task_tracker.cc ('k') | components/domain_reliability/context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698