| 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 9403e9795a112290d713f3b3238f2c1b1512c6e3..0a6a97dfa5da19b66f3a4bf9adc6cf65c0a5e1a1 100644
|
| --- a/chrome/browser/autocomplete/history_url_provider_unittest.cc
|
| +++ b/chrome/browser/autocomplete/history_url_provider_unittest.cc
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/autocomplete/history_quick_provider.h"
|
| #include "chrome/browser/history/history_service.h"
|
| #include "chrome/browser/history/history_service_factory.h"
|
| +#include "chrome/browser/search_engines/keyword_history_service.h"
|
| #include "chrome/browser/search_engines/template_url_service.h"
|
| #include "chrome/browser/search_engines/template_url_service_factory.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -28,6 +29,7 @@
|
| #include "components/history/core/browser/url_database.h"
|
| #include "components/metrics/proto/omnibox_event.pb.h"
|
| #include "components/metrics/proto/omnibox_input_type.pb.h"
|
| +#include "components/search_engines/search_terms_data.h"
|
| #include "components/search_engines/template_url.h"
|
| #include "components/url_fixer/url_fixer.h"
|
| #include "content/public/test/test_browser_thread_bundle.h"
|
| @@ -169,9 +171,12 @@ class HistoryURLProviderTest : public testing::Test,
|
|
|
| protected:
|
| static KeyedService* CreateTemplateURLService(
|
| - content::BrowserContext* profile) {
|
| - return new TemplateURLService(static_cast<Profile*>(profile), NULL,
|
| - base::Closure());
|
| + content::BrowserContext* context) {
|
| + Profile* profile = static_cast<Profile*>(context);
|
| + return new TemplateURLService(
|
| + profile->GetPrefs(), make_scoped_ptr(new SearchTermsData), NULL,
|
| + scoped_ptr<KeywordHistoryServiceInterface>(
|
| + new KeywordHistoryService(profile)), NULL, NULL, base::Closure());
|
| }
|
|
|
| // testing::Test
|
|
|