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

Unified Diff: chrome/browser/autocomplete/history_url_provider.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/autocomplete/history_url_provider.cc
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index be8d7446ea48a46c66d2c2b9a616c9f9234b74ce..bc629906d912f1d0cea4898df3499d66e15eec1f 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -536,7 +536,8 @@ void HistoryURLProvider::Start(const AutocompleteInput& input,
done_ = false;
params_ = params.release(); // This object will be destroyed in
// QueryComplete() once we're done with it.
- history_service->ScheduleAutocomplete(this, params_);
+ history_service->ScheduleAutocomplete(
+ base::Bind(&HistoryURLProvider::ExecuteWithDB, this, params_));
}
}
@@ -608,9 +609,9 @@ AutocompleteMatch HistoryURLProvider::SuggestExactInput(
return match;
}
-void HistoryURLProvider::ExecuteWithDB(history::HistoryBackend* backend,
- history::URLDatabase* db,
- HistoryURLProviderParams* params) {
+void HistoryURLProvider::ExecuteWithDB(HistoryURLProviderParams* params,
+ history::HistoryBackend* backend,
+ history::URLDatabase* db) {
// We may get called with a NULL database if it couldn't be properly
// initialized.
if (!db) {

Powered by Google App Engine
This is Rietveld 408576698