diff options
Diffstat (limited to 'chrome/browser/search_engines/template_url_prepopulate_data.cc')
-rw-r--r-- | chrome/browser/search_engines/template_url_prepopulate_data.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc index 425e110..7eccfdb 100644 --- a/chrome/browser/search_engines/template_url_prepopulate_data.cc +++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc @@ -2829,8 +2829,11 @@ int GetCurrentCountryID() { #elif defined(OS_ANDROID) int GetCurrentCountryID() { - NOTIMPLEMENTED(); - return kCountryIDUnknown; + const std::string country_code_at_install = + TemplateURLPrepopulateData::GetCountryCodeAtInstall(); + return country_code_at_install.empty() ? kCountryIDUnknown : + CountryCharsToCountryIDWithUpdate(country_code_at_install[0], + country_code_at_install[1]); } #elif defined(OS_POSIX) |