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

Unified Diff: components/search_engines/template_url_prepopulate_data.cc

Issue 1130183004: [iOS] Expose TemplateURLPrepopulateData::GetCurrentCountryID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.cc
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
index 5d79f666321fd04b8d3af15f6f277e3923233f31..84ef52289e7b20fcd82b1e5924adfb6808fa85be 100644
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -1277,4 +1277,12 @@ SearchEngineType GetEngineType(const GURL& url) {
return SEARCH_ENGINE_OTHER;
}
+#if defined(OS_IOS)
+
+int GetCurrentCountryID() {
+ return GetCountryIDFromPrefs(nullptr);
Peter Kasting 2015/05/12 18:49:13 This infinite loops, doesn't it? The first thing
sdefresne 2015/05/13 12:47:12 No because there are two methods called GetCurrent
+}
+
+#endif
+
} // namespace TemplateURLPrepopulateData

Powered by Google App Engine
This is Rietveld 408576698