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

Unified Diff: components/search_engines/template_url_prepopulate_data.h

Issue 1130183004: [iOS] Expose TemplateURLPrepopulateData::GetCurrentCountryID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address second round of comments Created 5 years, 7 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 298a79aea00f6bfb7cc416b76777ffc7400cd66f..29c5e969c75ad3db068e81abc7c30125f1af032e 100644
--- a/components/search_engines/template_url_prepopulate_data.h
+++ b/components/search_engines/template_url_prepopulate_data.h
@@ -65,6 +65,16 @@ SearchEngineType GetEngineType(const TemplateURL& template_url,
// This may be called on any thread.
SearchEngineType GetEngineType(const GURL& url);
+#if defined(OS_IOS)
+
+// Returns the identifier for the user current country. Used to update the list
+// of search engines when user switches device region settings.
+// TODO(ios): Remove this method once user can customize search engines, see
Peter Kasting 2015/05/18 18:31:34 Nit: Perhaps: TODO(ios): Once the user can custom
sdefresne 2015/05/19 09:04:22 Acknowledged.
+// http://crbug.com/153047.
+int GetCurrentCountryID();
+
+#endif // defined(OS_IOS)
+
} // namespace TemplateURLPrepopulateData
#endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_PREPOPULATE_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698