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

Unified Diff: base/mac/launch_services_util.cc

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 | « base/mac/foundation_util.mm ('k') | base/message_loop/message_pump_io_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/launch_services_util.cc
diff --git a/base/mac/launch_services_util.cc b/base/mac/launch_services_util.cc
index c24d8646ac5179f8531ada78880cbfc43b26708b..0081500f2d99340238629bae14e30725e4164abb 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<std::string> argv = command_line.argv();
int argc = argv.size();
- base::mac::ScopedCFTypeRef<CFMutableArrayRef> launch_args(
+ base::ScopedCFTypeRef<CFMutableArrayRef> 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<CFStringRef> arg_cf(
- base::SysUTF8ToCFStringRef(arg));
+ base::ScopedCFTypeRef<CFStringRef> arg_cf(base::SysUTF8ToCFStringRef(arg));
if (!arg_cf) {
LOG(ERROR) << "base::SysUTF8ToCFStringRef failed for " << arg;
return false;
« no previous file with comments | « base/mac/foundation_util.mm ('k') | base/message_loop/message_pump_io_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698