| Index: chrome/browser/autocomplete/shortcuts_backend.cc
|
| diff --git a/chrome/browser/autocomplete/shortcuts_backend.cc b/chrome/browser/autocomplete/shortcuts_backend.cc
|
| index fd0916cca33ffd0517fc9c9199a248433032654f..71254aae9df8c57c8e1741f70a30090a0e12e524 100644
|
| --- a/chrome/browser/autocomplete/shortcuts_backend.cc
|
| +++ b/chrome/browser/autocomplete/shortcuts_backend.cc
|
| @@ -22,7 +22,6 @@
|
| #include "chrome/browser/history/shortcuts_database.h"
|
| #include "chrome/browser/omnibox/omnibox_log.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| -#include "chrome/browser/search_engines/template_url_service_factory.h"
|
| #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
|
| #include "chrome/common/autocomplete_match_type.h"
|
| #include "chrome/common/chrome_constants.h"
|
| @@ -144,14 +143,12 @@
|
| ShortcutsBackend::MatchToMatchCore(const AutocompleteMatch& match,
|
| Profile* profile) {
|
| const AutocompleteMatch::Type match_type = GetTypeForShortcut(match.type);
|
| - TemplateURLService* service =
|
| - TemplateURLServiceFactory::GetForProfile(profile);
|
| const AutocompleteMatch& normalized_match =
|
| AutocompleteMatch::IsSpecializedSearchType(match.type) ?
|
| BaseSearchProvider::CreateSearchSuggestion(
|
| match.search_terms_args->search_terms, match_type,
|
| (match.transition == content::PAGE_TRANSITION_KEYWORD),
|
| - match.GetTemplateURL(service, false),
|
| + match.GetTemplateURL(profile, false),
|
| UIThreadSearchTermsData(profile)) :
|
| match;
|
| return history::ShortcutsDatabase::Shortcut::MatchCore(
|
|
|