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

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: 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/autocomplete/history_url_provider.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 971d1159a4510c7254672ea2e378350f4cbc319a..d6ed4b132666d8cc544da129d66542508a5709ce 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -588,7 +588,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_));
}
}
@@ -661,9 +662,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) {
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.h ('k') | chrome/browser/history/history_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698