Index: chrome/browser/autocomplete/autocomplete_controller.cc |
diff --git a/chrome/browser/autocomplete/autocomplete_controller.cc b/chrome/browser/autocomplete/autocomplete_controller.cc |
index 35b0ccb1ddb656e5d8aaff06af8bd9eb9fe1d01f..a09e3a581769d3a634b396aa17f810b4d1bbdf03 100644 |
--- a/chrome/browser/autocomplete/autocomplete_controller.cc |
+++ b/chrome/browser/autocomplete/autocomplete_controller.cc |
@@ -189,10 +189,15 @@ AutocompleteController::AutocompleteController( |
providers_.push_back(new BuiltinProvider()); |
if (provider_types & AutocompleteProvider::TYPE_HISTORY_QUICK) { |
providers_.push_back(new HistoryQuickProvider( |
+ scoped_ptr<AutocompleteProviderClient>( |
+ new ChromeAutocompleteProviderClient(profile)), |
profile, InMemoryURLIndexFactory::GetForProfile(profile))); |
Peter Kasting
2015/06/12 16:20:22
It feels weird that right now these classes take b
blundell
2015/06/12 16:46:59
I'd prefer keep this structure even though it's ki
Peter Kasting
2015/06/12 17:02:20
How near is near future? If it's in the next week
blundell
2015/06/12 19:30:19
"Near future" is within a couple of weeks *unless*
blundell
2015/06/15 08:51:33
Changed to that model.
|
} |
if (provider_types & AutocompleteProvider::TYPE_HISTORY_URL) { |
- history_url_provider_ = new HistoryURLProvider(this, profile); |
+ history_url_provider_ = new HistoryURLProvider( |
+ scoped_ptr<AutocompleteProviderClient>( |
+ new ChromeAutocompleteProviderClient(profile)), |
+ this, profile); |
providers_.push_back(history_url_provider_); |
} |
// "Tab to search" can be used on all platforms other than Android. |