| 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());
|
| }
|
|
|
|
|