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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.cc

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: 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;

Powered by Google App Engine
This is Rietveld 408576698