| Index: components/dom_distiller/core/distiller_page.cc
|
| diff --git a/components/dom_distiller/core/distiller_page.cc b/components/dom_distiller/core/distiller_page.cc
|
| index 74e6f1c6246ef2d5144923df0cb07bc434936902..12c186ab012d330d509cac95c7f6edc8d1c6cacc 100644
|
| --- a/components/dom_distiller/core/distiller_page.cc
|
| +++ b/components/dom_distiller/core/distiller_page.cc
|
| @@ -6,11 +6,13 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/json/json_writer.h"
|
| +#include "base/location.h"
|
| #include "base/logging.h"
|
| -#include "base/message_loop/message_loop.h"
|
| #include "base/metrics/histogram.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| #include "grit/components_resources.h"
|
| #include "third_party/dom_distiller_js/dom_distiller.pb.h"
|
| @@ -162,11 +164,9 @@ void DistillerPage::OnDistillationDone(const GURL& page_url,
|
| }
|
| }
|
|
|
| - base::MessageLoop::current()->PostTask(
|
| - FROM_HERE,
|
| - base::Bind(distiller_page_callback_,
|
| - base::Passed(&distiller_result),
|
| - found_content));
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| + FROM_HERE, base::Bind(distiller_page_callback_,
|
| + base::Passed(&distiller_result), found_content));
|
| }
|
|
|
| } // namespace dom_distiller
|
|
|