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

Unified Diff: components/dom_distiller/core/task_tracker.cc

Issue 2037843002: Remove use of deprecated MessageLoop methods in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change precache Created 4 years, 6 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/task_tracker.cc
diff --git a/components/dom_distiller/core/task_tracker.cc b/components/dom_distiller/core/task_tracker.cc
index 0a967cfbf3140c45f2ca257b95210d9b197a1727..152ba0f58dc2ab2212449c168d791037da0151bc 100644
--- a/components/dom_distiller/core/task_tracker.cc
+++ b/components/dom_distiller/core/task_tracker.cc
@@ -9,7 +9,6 @@
#include "base/auto_reset.h"
#include "base/location.h"
-#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/dom_distiller/core/distilled_content_store.h"
@@ -154,14 +153,16 @@ void TaskTracker::OnDistillerFinished(
// 'distiller_ != null' is used as a signal that distillation is in progress,
// so it needs to be released so that we know distillation is done.
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, distiller_.release());
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE,
+ distiller_.release());
ContentSourceFinished();
}
void TaskTracker::CancelPendingSources() {
if (distiller_) {
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, distiller_.release());
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE,
+ distiller_.release());
}
}
« no previous file with comments | « components/dom_distiller/core/dom_distiller_service.cc ('k') | components/mus/public/cpp/tests/window_server_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698