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

Unified Diff: sync/util/get_session_name_mac.mm

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format 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
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/get_session_name_mac.mm
diff --git a/sync/util/get_session_name_mac.mm b/sync/util/get_session_name_mac.mm
index f576ea7587f39b73e1b56fef99cf62aba0af1a6a..aa61e2f6d1a969849671836648297f21fc4a2e4d 100644
--- a/sync/util/get_session_name_mac.mm
+++ b/sync/util/get_session_name_mac.mm
@@ -17,16 +17,15 @@ namespace internal {
std::string GetHardwareModelName() {
// Do not use NSHost currentHost, as it's very slow. http://crbug.com/138570
SCDynamicStoreContext context = { 0, NULL, NULL, NULL };
- base::mac::ScopedCFTypeRef<SCDynamicStoreRef> store(
- SCDynamicStoreCreate(kCFAllocatorDefault, CFSTR("chrome_sync"),
- NULL, &context));
- base::mac::ScopedCFTypeRef<CFStringRef> machine_name(
+ base::ScopedCFTypeRef<SCDynamicStoreRef> store(SCDynamicStoreCreate(
+ kCFAllocatorDefault, CFSTR("chrome_sync"), NULL, &context));
+ base::ScopedCFTypeRef<CFStringRef> machine_name(
SCDynamicStoreCopyLocalHostName(store.get()));
if (machine_name.get())
return base::SysCFStringRefToUTF8(machine_name.get());
// Fall back to get computer name.
- base::mac::ScopedCFTypeRef<CFStringRef> computer_name(
+ base::ScopedCFTypeRef<CFStringRef> computer_name(
SCDynamicStoreCopyComputerName(store.get(), NULL));
if (computer_name.get())
return base::SysCFStringRefToUTF8(computer_name.get());
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698