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 c08242884054a6cf783e27c7ce5b332b3f6cb010..769954e40b863245be8a0c5f5c4968e33b938c36 100644 |
--- a/components/history/core/browser/history_service.cc |
+++ b/components/history/core/browser/history_service.cc |
@@ -933,11 +933,11 @@ void HistoryService::ScheduleAutocomplete( |
} |
void HistoryService::ScheduleTask(SchedulePriority priority, |
- const base::Closure& task) { |
+ base::Closure task) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
CHECK(backend_task_runner_); |
// TODO(brettw): Do prioritization. |
- backend_task_runner_->PostTask(FROM_HERE, task); |
+ backend_task_runner_->PostTask(FROM_HERE, std::move(task)); |
} |
base::WeakPtr<HistoryService> HistoryService::AsWeakPtr() { |