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

Unified Diff: components/search_engines/template_url_prepopulate_data.h

Issue 2347973002: Enable Chrome to tweak search engines for some locales (Closed)
Patch Set: comments Created 4 years, 3 months 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_prepopulate_data.h
diff --git a/components/search_engines/template_url_prepopulate_data.h b/components/search_engines/template_url_prepopulate_data.h
index 210a0f50f2345bf1ed88a0cf0d58767176ff8ff5..6b85c1ad34e002fab764bf3ebf70400ac61f76eb 100644
--- a/components/search_engines/template_url_prepopulate_data.h
+++ b/components/search_engines/template_url_prepopulate_data.h
@@ -42,6 +42,13 @@ std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedEngines(
PrefService* prefs,
size_t* default_search_provider_index);
+// Loads extra prepopulated engines for the given locale. If the engines are
+// already loaded, need_to-load will be set false.
Peter Kasting 2016/09/19 21:06:23 Nit: How about this (I rewrote both functions' com
Ian Wen 2016/09/20 04:48:03 Done.
+std::vector<std::unique_ptr<TemplateURLData>> GetLocalPrepopulatedEngines(
Peter Kasting 2016/09/19 21:06:23 Should this function be #if'd for Android-only? I
Ian Wen 2016/09/20 04:48:03 Done.
+ const std::string& locale,
+ PrefService* prefs,
+ bool* need_to_load);
+
// Returns all prepopulated engines for all locales. Used only by tests.
std::vector<const PrepopulatedEngine*> GetAllPrepopulatedEngines();

Powered by Google App Engine
This is Rietveld 408576698