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

Unified Diff: components/search_engines/template_url_service.h

Issue 2367373003: [Android] Allow setting recently visited search engines as default search engine (Closed)
Patch Set: Update based on Dan's new comments. 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..0657aa9e716db2c9eacba16fe4a38871f9c6747d 100644
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -151,6 +151,9 @@ class TemplateURLService : public WebDataServiceConsumer,
bool supports_replacement_only,
TURLsAndMeaningfulLengths* matches);
+ // Returns true if the TempalteURL is prepopulated or created by policy.
Peter Kasting 2016/11/02 00:34:03 Nit: TemplateURL
ltian 2016/11/22 21:51:41 Done.
+ bool IsInDefaultList(const TemplateURL* url);
Peter Kasting 2016/11/02 00:34:03 It seems like this is really a const member method
ltian 2016/11/22 21:51:41 Not exist any more.
+
// Looks up |keyword| and returns the element it maps to. Returns NULL if
// the keyword was not found.
// The caller should not try to delete the returned pointer; the data store

Powered by Google App Engine
This is Rietveld 408576698