From 3df79f4277938356ae3c7b3ecc25ab6165e8a899 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Mon, 24 Jun 2013 18:49:05 +0000 Subject: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. This CL was created fully mechanically by running git grep -l base::mac::ScopedCFTypeRef | xargs sed -i -e 's/base::mac::ScopedCFTypeRef/base::ScopedCFTypeRef/g' git commit -a -m. git clang-format HEAD^ --style=Chromium git commit -a -m. git cl upload -t $TITLE BUG=251957 TBR=mark@chromium.org Review URL: https://codereview.chromium.org/16917011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208245 0039d316-1c4b-4281-b951-d872f2087c98 --- base/mac/foundation_util.mm | 5 ++--- base/mac/launch_services_util.cc | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'base/mac') diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm index 71e8942..1897b6f 100644 --- a/base/mac/foundation_util.mm +++ b/base/mac/foundation_util.mm @@ -383,9 +383,8 @@ std::ostream& operator<<(std::ostream& o, const CFStringRef string) { } std::ostream& operator<<(std::ostream& o, const CFErrorRef err) { - base::mac::ScopedCFTypeRef desc(CFErrorCopyDescription(err)); - base::mac::ScopedCFTypeRef user_info( - CFErrorCopyUserInfo(err)); + base::ScopedCFTypeRef desc(CFErrorCopyDescription(err)); + base::ScopedCFTypeRef user_info(CFErrorCopyUserInfo(err)); CFStringRef errorDesc = NULL; if (user_info.get()) { errorDesc = reinterpret_cast( diff --git a/base/mac/launch_services_util.cc b/base/mac/launch_services_util.cc index c24d864..0081500 100644 --- a/base/mac/launch_services_util.cc +++ b/base/mac/launch_services_util.cc @@ -25,7 +25,7 @@ bool OpenApplicationWithPath(const base::FilePath& bundle_path, std::vector argv = command_line.argv(); int argc = argv.size(); - base::mac::ScopedCFTypeRef launch_args( + base::ScopedCFTypeRef launch_args( CFArrayCreateMutable(NULL, argc - 1, &kCFTypeArrayCallBacks)); if (!launch_args) { LOG(ERROR) << "CFArrayCreateMutable failed, size was " << argc; @@ -35,8 +35,7 @@ bool OpenApplicationWithPath(const base::FilePath& bundle_path, for (int i = 1; i < argc; ++i) { const std::string& arg(argv[i]); - base::mac::ScopedCFTypeRef arg_cf( - base::SysUTF8ToCFStringRef(arg)); + base::ScopedCFTypeRef arg_cf(base::SysUTF8ToCFStringRef(arg)); if (!arg_cf) { LOG(ERROR) << "base::SysUTF8ToCFStringRef failed for " << arg; return false; -- cgit v1.1