Index: chrome/browser/ui/views/frame/test_with_browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/test_with_browser_view.cc b/chrome/browser/ui/views/frame/test_with_browser_view.cc |
index c54a075e17ff53a7740876560603824f8b79f9ae..97e405acbe1430dbd62fede8c9e0927e6881d8fe 100644 |
--- a/chrome/browser/ui/views/frame/test_with_browser_view.cc |
+++ b/chrome/browser/ui/views/frame/test_with_browser_view.cc |
@@ -7,6 +7,7 @@ |
#include "chrome/browser/autocomplete/autocomplete_classifier.h" |
#include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
#include "chrome/browser/autocomplete/autocomplete_controller.h" |
+#include "chrome/browser/history/history_service_factory.h" |
#include "chrome/browser/predictors/predictor_database.h" |
#include "chrome/browser/search_engines/chrome_template_url_service_client.h" |
#include "chrome/browser/search_engines/template_url_service_factory.h" |
@@ -39,7 +40,9 @@ KeyedService* CreateTemplateURLService(content::BrowserContext* context) { |
WebDataServiceFactory::GetKeywordWebDataForProfile( |
profile, Profile::EXPLICIT_ACCESS), |
scoped_ptr<TemplateURLServiceClient>( |
- new ChromeTemplateURLServiceClient(profile)), |
+ new ChromeTemplateURLServiceClient( |
+ HistoryServiceFactory::GetForProfile(profile, |
+ Profile::EXPLICIT_ACCESS))), |
NULL, NULL, base::Closure()); |
} |