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

Unified Diff: chrome/browser/history/history_service.cc

Issue 376703007: Change HistoryService::ScheduleAutocomplete interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 6 years, 5 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 | « chrome/browser/history/history_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_service.cc
diff --git a/chrome/browser/history/history_service.cc b/chrome/browser/history/history_service.cc
index 13713c88099d8fe7ef5dd658921fe34340c91978..fe4aab27958fd1865b8390e0818cceef6be8b0ba 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"
@@ -966,11 +965,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,
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698