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 a01043e0c6f6471d5867668fcd1e8232aed64076..22eb27f72e83cf05657a3d05aa24fc1e6ebe438d 100644 |
--- a/chrome/browser/autocomplete/base_search_provider.cc |
+++ b/chrome/browser/autocomplete/base_search_provider.cc |
@@ -177,7 +177,9 @@ void BaseSearchProvider::DeleteMatch(const AutocompleteMatch& match) { |
HistoryService* const history_service = |
HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); |
- TemplateURL* template_url = match.GetTemplateURL(profile_, false); |
+ TemplateURLService* template_url_service = |
+ TemplateURLServiceFactory::GetForProfile(profile_); |
+ TemplateURL* template_url = match.GetTemplateURL(template_url_service, 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) { |