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) { |