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

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: 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..ec9ca287b2a7b4e0c2609f37b1de11836c0c8ac7 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 switch device region settings.
Peter Kasting 2015/05/12 18:49:13 Nit: switches
sdefresne 2015/05/13 12:47:12 Done.
+// TODO(ios): Remove this method once user can customize search engine, see
Peter Kasting 2015/05/12 18:49:14 Nit: engines
sdefresne 2015/05/13 12:47:12 Done.
+// http://crbug.com/144145
Peter Kasting 2015/05/12 18:49:14 Nit: Trailing period Also, the linked bug isn't o
sdefresne 2015/05/13 12:47:12 Good catch. I've updated the bug reference.
+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