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

Unified Diff: components/dom_distiller/core/dom_distiller_service.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
« no previous file with comments | « components/dom_distiller/core/distiller.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/dom_distiller_service.cc
diff --git a/components/dom_distiller/core/dom_distiller_service.cc b/components/dom_distiller/core/dom_distiller_service.cc
index affdc916b1ec3a7466f8216c104df941c502fd0b..78534bfa38632d2ecb8a43bb86318e519329e81f 100644
--- a/components/dom_distiller/core/dom_distiller_service.cc
+++ b/components/dom_distiller/core/dom_distiller_service.cc
@@ -8,7 +8,6 @@
#include "base/guid.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"
@@ -253,7 +252,7 @@ void DomDistillerService::CancelTask(TaskTracker* task) {
TaskList::iterator it = std::find(tasks_.begin(), tasks_.end(), task);
if (it != tasks_.end()) {
tasks_.weak_erase(it);
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, task);
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, task);
}
}
« no previous file with comments | « components/dom_distiller/core/distiller.cc ('k') | components/dom_distiller/core/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698