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 ee12247b7e05e9ee6eb700c5464e914503b57d10..aeafbbc6dbd31d1e1573fda2d5bf3ff08cc57020 100644 |
--- a/components/search_engines/template_url_service.cc |
+++ b/components/search_engines/template_url_service.cc |
@@ -1642,8 +1642,8 @@ bool TemplateURLService::CanAddAutogeneratedKeywordForHost( |
} |
bool TemplateURLService::CanReplace(const TemplateURL* t_url) { |
- return (t_url != default_search_provider_ && !t_url->show_in_default_list() && |
- t_url->safe_for_autoreplace()); |
+ return (t_url != default_search_provider_ && t_url->prepopulate_id() <= 0 && |
+ !t_url->created_by_policy() && t_url->safe_for_autoreplace()); |
} |
TemplateURL* TemplateURLService::FindNonExtensionTemplateURLForKeyword( |