| Index: components/search_engines/template_url_service.cc
|
| diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
|
| index 664fa3390a3a2ec1775d070a925493347201018e..ea3f3db3743ebaf107f3cf7070234a3798803ba6 100644
|
| --- a/components/search_engines/template_url_service.cc
|
| +++ b/components/search_engines/template_url_service.cc
|
| @@ -395,10 +395,14 @@ bool TemplateURLService::CanAddAutogeneratedKeyword(
|
| CanAddAutogeneratedKeywordForHost(url.host());
|
| }
|
|
|
| +bool TemplateURLService::ShowInPrepopulatedList(const TemplateURL* t_url) {
|
| + return (t_url->prepopulate_id() > 0 || t_url->created_by_policy()) &&
|
| + t_url->SupportsReplacement(search_terms_data());
|
| +}
|
| +
|
| bool TemplateURLService::ShowInDefaultList(const TemplateURL* t_url) {
|
| - return (t_url == default_search_provider_ || t_url->prepopulate_id() > 0 ||
|
| - t_url->created_by_policy()) &&
|
| - t_url->SupportsReplacement(search_terms_data());
|
| + return t_url == default_search_provider_ ||
|
| + ShowInPrepopulatedList(t_url);
|
| }
|
|
|
| void TemplateURLService::AddMatchingKeywords(
|
|
|