Chromium Code Reviews| Index: chrome/browser/autocomplete/history_url_provider_unittest.cc |
| diff --git a/chrome/browser/autocomplete/history_url_provider_unittest.cc b/chrome/browser/autocomplete/history_url_provider_unittest.cc |
| index a5bd316dbc0e05520f8351c69644cd57037a2cbc..487ceac81cff2f64f111ab397ff1c492fa490d7f 100644 |
| --- a/chrome/browser/autocomplete/history_url_provider_unittest.cc |
| +++ b/chrome/browser/autocomplete/history_url_provider_unittest.cc |
| @@ -12,6 +12,7 @@ |
| #include "base/strings/string_util.h" |
| #include "base/strings/utf_string_conversions.h" |
| #include "base/time/time.h" |
| +#include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
| #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
| #include "chrome/browser/autocomplete/history_quick_provider.h" |
| #include "chrome/browser/history/history_service_factory.h" |
| @@ -261,7 +262,11 @@ bool HistoryURLProviderTest::SetUpImpl(bool no_db) { |
| history_service_ = HistoryServiceFactory::GetForProfile( |
| profile_.get(), ServiceAccessType::EXPLICIT_ACCESS); |
| - autocomplete_ = new HistoryURLProvider(this, profile_.get()); |
| + autocomplete_ = new HistoryURLProvider( |
| + scoped_ptr<AutocompleteProviderClient>( |
| + new ChromeAutocompleteProviderClient(profile_.get())), |
|
Peter Kasting
2015/06/12 16:20:23
...as does this change
blundell
2015/06/15 08:51:33
Obsolete now.
|
| + |
| + this, profile_.get()); |
| TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse( |
| profile_.get(), &HistoryURLProviderTest::CreateTemplateURLService); |
| FillData(); |