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

Unified Diff: components/dom_distiller/core/distilled_content_store.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/core/distilled_content_store.cc
diff --git a/components/dom_distiller/core/distilled_content_store.cc b/components/dom_distiller/core/distilled_content_store.cc
index 11ff967a809905d8a87f9048c8d0c9c344fd5a49..1cb1d9e79e379a502522ac6048f58feaf06fe27a 100644
--- a/components/dom_distiller/core/distilled_content_store.cc
+++ b/components/dom_distiller/core/distilled_content_store.cc
@@ -4,7 +4,7 @@
#include "components/dom_distiller/core/distilled_content_store.h"
-#include "base/message_loop/message_loop.h"
+#include "base/thread_task_runner_handle.h"
namespace dom_distiller {
@@ -24,8 +24,8 @@ void InMemoryContentStore::SaveContent(
InMemoryContentStore::SaveCallback callback) {
InjectContent(entry, proto);
if (!callback.is_null()) {
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback, true));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::Bind(callback, true));
}
}
@@ -56,7 +56,7 @@ void InMemoryContentStore::LoadContent(
} else {
distilled_article.reset(new DistilledArticleProto());
}
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, success, base::Passed(&distilled_article)));
}

Powered by Google App Engine
This is Rietveld 408576698