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

Unified Diff: components/history/core/browser/history_service.cc

Issue 2406423003: Remove MessageLoop::current() from history_service.cc (Closed)
Patch Set: CR sdefresne #11 Created 4 years, 2 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/history/core/browser/history_backend.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_service.cc
diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
index 55ad3ec98fb9cb3b7a2afdf2a716361111dc834c..a4993cac05fb647e2c225199f636bd002f44e896 100644
--- a/components/history/core/browser/history_service.cc
+++ b/components/history/core/browser/history_service.cc
@@ -329,8 +329,8 @@ void HistoryService::SetOnBackendDestroyTask(const base::Closure& task) {
DCHECK(thread_checker_.CalledOnValidThread());
ScheduleTask(
PRIORITY_NORMAL,
- base::Bind(&HistoryBackend::SetOnBackendDestroyTask,
- history_backend_, base::MessageLoop::current(), task));
+ base::Bind(&HistoryBackend::SetOnBackendDestroyTask, history_backend_,
+ base::ThreadTaskRunnerHandle::Get(), task));
}
void HistoryService::TopHosts(size_t num_hosts,
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698