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

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: 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
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,
« chrome/browser/history/history_backend.cc ('K') | « chrome/browser/history/history_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698