Index: chrome/browser/ui/omnibox/omnibox_popup_model.cc |
diff --git a/chrome/browser/ui/omnibox/omnibox_popup_model.cc b/chrome/browser/ui/omnibox/omnibox_popup_model.cc |
index 9c6651e0def75357b2004e650675b53d1d9428db..e237c286b94a8eb472d08390cf912bbf9cca4c08 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_popup_model.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_popup_model.cc |
@@ -159,9 +159,7 @@ |
// eliminated and just become a call to the observer on the edit. |
base::string16 keyword; |
bool is_keyword_hint; |
- TemplateURLService* service = |
- TemplateURLServiceFactory::GetForProfile(edit_model_->profile()); |
- match.GetKeywordUIState(service, &keyword, &is_keyword_hint); |
+ match.GetKeywordUIState(edit_model_->profile(), &keyword, &is_keyword_hint); |
if (reset_to_default) { |
edit_model_->OnPopupDataChanged(match.inline_autocompletion, NULL, |
@@ -244,9 +242,7 @@ |
gfx::Image OmniboxPopupModel::GetIconIfExtensionMatch( |
const AutocompleteMatch& match) const { |
Profile* profile = edit_model_->profile(); |
- TemplateURLService* service = |
- TemplateURLServiceFactory::GetForProfile(profile); |
- const TemplateURL* template_url = match.GetTemplateURL(service, false); |
+ const TemplateURL* template_url = match.GetTemplateURL(profile, false); |
if (template_url && |
(template_url->GetType() == TemplateURL::OMNIBOX_API_EXTENSION)) { |
return extensions::OmniboxAPI::Get(profile)->GetOmniboxPopupIcon( |