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

Unified Diff: components/dom_distiller/core/fake_distiller.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/dom_distiller_store.cc ('k') | components/dom_distiller/core/task_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/fake_distiller.cc
diff --git a/components/dom_distiller/core/fake_distiller.cc b/components/dom_distiller/core/fake_distiller.cc
index 8211032fc9f08af8adfe55ab6d338e8c06a78f66..85aee15a3c9910e5129e060185a8b47db75099d2 100644
--- a/components/dom_distiller/core/fake_distiller.cc
+++ b/components/dom_distiller/core/fake_distiller.cc
@@ -7,7 +7,9 @@
#include "base/auto_reset.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace dom_distiller {
@@ -70,11 +72,9 @@ void FakeDistiller::RunDistillerUpdateCallback(
void FakeDistiller::PostDistillerCallback(
scoped_ptr<DistilledArticleProto> proto) {
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&FakeDistiller::RunDistillerCallbackInternal,
- base::Unretained(this),
- base::Passed(&proto)));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&FakeDistiller::RunDistillerCallbackInternal,
+ base::Unretained(this), base::Passed(&proto)));
}
void FakeDistiller::RunDistillerCallbackInternal(
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.cc ('k') | components/dom_distiller/core/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698