Index: chrome/browser/history/history_service.cc |
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc |
index 405b8e81208c0f0d1a2b6aa968cbb702113f3ed9..7da7082b6a0185cf7d1af89ffb061f2499c14085 100644 |
--- a/chrome/browser/history/history_service.cc |
+++ b/chrome/browser/history/history_service.cc |
@@ -30,7 +30,6 @@ |
#include "base/thread_task_runner_handle.h" |
#include "base/threading/thread.h" |
#include "base/time/time.h" |
-#include "chrome/browser/autocomplete/history_url_provider.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/history/download_row.h" |
@@ -939,11 +938,11 @@ bool HistoryService::Init(const base::FilePath& history_dir, bool no_db) { |
return true; |
} |
-void HistoryService::ScheduleAutocomplete(HistoryURLProvider* provider, |
- HistoryURLProviderParams* params) { |
+void HistoryService::ScheduleAutocomplete(const base::Callback< |
+ void(history::HistoryBackend*, history::URLDatabase*)>& callback) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
- ScheduleAndForget(PRIORITY_UI, &HistoryBackend::ScheduleAutocomplete, |
- scoped_refptr<HistoryURLProvider>(provider), params); |
+ ScheduleAndForget( |
+ PRIORITY_UI, &HistoryBackend::ScheduleAutocomplete, callback); |
} |
void HistoryService::ScheduleTask(SchedulePriority priority, |