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

Unified Diff: base/native_library_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 | « base/message_loop/message_pump_io_ios.cc ('k') | base/strings/sys_string_conversions_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library_mac.mm
diff --git a/base/native_library_mac.mm b/base/native_library_mac.mm
index 11347448545bfc4df04c8b9917ffa70215049b19..15f9e8849cd19aff01000a929b3739bd0ebb6cde 100644
--- a/base/native_library_mac.mm
+++ b/base/native_library_mac.mm
@@ -56,12 +56,11 @@ NativeLibrary LoadNativeLibrary(const base::FilePath& library_path,
native_lib->objc_status = OBJC_UNKNOWN;
return native_lib;
}
- base::mac::ScopedCFTypeRef<CFURLRef> url(
- CFURLCreateFromFileSystemRepresentation(
- kCFAllocatorDefault,
- (const UInt8*)library_path.value().c_str(),
- library_path.value().length(),
- true));
+ base::ScopedCFTypeRef<CFURLRef> url(CFURLCreateFromFileSystemRepresentation(
+ kCFAllocatorDefault,
+ (const UInt8*)library_path.value().c_str(),
+ library_path.value().length(),
+ true));
if (!url)
return NULL;
CFBundleRef bundle = CFBundleCreate(kCFAllocatorDefault, url.get());
@@ -103,9 +102,8 @@ void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
// Get the function pointer using the right API for the type.
if (library->type == BUNDLE) {
- base::mac::ScopedCFTypeRef<CFStringRef> symbol_name(
- CFStringCreateWithCString(kCFAllocatorDefault, name,
- kCFStringEncodingUTF8));
+ base::ScopedCFTypeRef<CFStringRef> symbol_name(CFStringCreateWithCString(
+ kCFAllocatorDefault, name, kCFStringEncodingUTF8));
function_pointer = CFBundleGetFunctionPointerForName(library->bundle,
symbol_name);
} else {
« no previous file with comments | « base/message_loop/message_pump_io_ios.cc ('k') | base/strings/sys_string_conversions_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698