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 8104dc2acf8e76a1b4c95050f8f89eac59c45e5a..81dac120ce10cbd9d8ba0dbe80cde92d3e9c8eba 100644 |
--- a/chrome/browser/autocomplete/base_search_provider.cc |
+++ b/chrome/browser/autocomplete/base_search_provider.cc |
@@ -176,7 +176,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) { |