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