Index: chrome/browser/autocomplete/base_search_provider.cc |
diff --git a/chrome/browser/autocomplete/base_search_provider.cc b/chrome/browser/autocomplete/base_search_provider.cc |
index 22eb27f72e83cf05657a3d05aa24fc1e6ebe438d..a01043e0c6f6471d5867668fcd1e8232aed64076 100644 |
--- a/chrome/browser/autocomplete/base_search_provider.cc |
+++ b/chrome/browser/autocomplete/base_search_provider.cc |
@@ -177,9 +177,7 @@ |
HistoryService* const history_service = |
HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); |
- TemplateURLService* template_url_service = |
- TemplateURLServiceFactory::GetForProfile(profile_); |
- TemplateURL* template_url = match.GetTemplateURL(template_url_service, false); |
+ TemplateURL* template_url = match.GetTemplateURL(profile_, false); |
// This may be NULL if the template corresponding to the keyword has been |
// deleted or there is no keyword set. |
if (template_url != NULL) { |