Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: components/search_engines/template_url_service.h

Issue 2487633003: Change behaivor to decide whether a search engine should be shown in the default list (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/search_engines/template_url_service.h
diff --git a/components/search_engines/template_url_service.h b/components/search_engines/template_url_service.h
index da7c5169a0f09b3d1ca09bff53e07c62fefc88f4..fd86a1215d99f447e3f63137956a08a16986f7c6 100644
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -133,6 +133,12 @@ class TemplateURLService : public WebDataServiceConsumer,
const GURL& url,
TemplateURL** template_url_to_replace);
+ // Returns true if the template_url is in the default list. An TemplateURL is
+ // in the default list if it is the default search provider or its
+ // prepopulated
+ // id is greater than 0 or it is created by policy.
Ian Wen 2016/11/09 19:58:52 Again, comments not well formatted.
Peter Kasting 2016/11/10 06:41:07 Nit: How about this comment, which is more about w
ltian 2016/11/11 03:52:13 Done.
ltian 2016/11/11 03:52:13 Good point. I will add this in together with a des
+ bool ShowInDefaultList(const TemplateURL* template_url);
+
// Adds to |matches| all TemplateURLs whose keywords begin with |prefix|,
// sorted shortest-keyword-first. If |supports_replacement_only| is true, only
// TemplateURLs that support replacement are returned.

Powered by Google App Engine
This is Rietveld 408576698