Chromium Code Reviews| Index: chrome/browser/search_engines/template_url_prepopulate_data.cc |
| diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc |
| index 07438a9d2675ecb8dedff0b2fcb4b07a02a5be08..0f35035f8ed155b845e8c0e63ba7b570e17151de 100644 |
| --- a/chrome/browser/search_engines/template_url_prepopulate_data.cc |
| +++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc |
| @@ -618,9 +618,9 @@ int GetCurrentCountryID() { |
| #elif defined(OS_MACOSX) |
| int GetCurrentCountryID() { |
| - base::mac::ScopedCFTypeRef<CFLocaleRef> locale(CFLocaleCopyCurrent()); |
| - CFStringRef country = (CFStringRef)CFLocaleGetValue(locale.get(), |
| - kCFLocaleCountryCode); |
| + base::ScopedCFTypeRef<CFLocaleRef> locale(CFLocaleCopyCurrent()); |
| + CFStringRef country = |
|
Mark Mentovai
2013/06/21 20:29:40
The only reason I can see that this was touched is
Nico
2013/06/21 21:09:06
Huh, this is strange. Looking…
I think this is a
|
| + (CFStringRef)CFLocaleGetValue(locale.get(), kCFLocaleCountryCode); |
| if (!country) |
| return kCountryIDUnknown; |