diff options
author | Iain Merrick <husky@google.com> | 2010-11-01 12:19:54 +0000 |
---|---|---|
committer | Iain Merrick <husky@google.com> | 2010-11-03 10:21:10 +0000 |
commit | 731df977c0511bca2206b5f333555b1205ff1f43 (patch) | |
tree | 0e750b949b3f00a1ac11fda25d3c2de512f2b465 /base/native_library_mac.mm | |
parent | 5add15e10e7bb80512f2c597ca57221314abe577 (diff) | |
download | external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.zip external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.gz external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.bz2 |
Merge Chromium at r63472 : Initial merge by git.
Change-Id: Ifb9ee821af006a5f2211e81471be93ae440a1f5a
Diffstat (limited to 'base/native_library_mac.mm')
-rw-r--r-- | base/native_library_mac.mm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/base/native_library_mac.mm b/base/native_library_mac.mm index d13a4b6..95cac15 100644 --- a/base/native_library_mac.mm +++ b/base/native_library_mac.mm @@ -9,7 +9,7 @@ #include "base/file_path.h" #include "base/file_util.h" -#include "base/scoped_cftyperef.h" +#include "base/mac/scoped_cftyperef.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" @@ -27,11 +27,12 @@ NativeLibrary LoadNativeLibrary(const FilePath& library_path) { native_lib->dylib = dylib; return native_lib; } - scoped_cftyperef<CFURLRef> url(CFURLCreateFromFileSystemRepresentation( - kCFAllocatorDefault, - (const UInt8*)library_path.value().c_str(), - library_path.value().length(), - true)); + base::mac::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()); @@ -61,7 +62,7 @@ void UnloadNativeLibrary(NativeLibrary library) { void* GetFunctionPointerFromNativeLibrary(NativeLibrary library, const char* name) { if (library->type == BUNDLE) { - scoped_cftyperef<CFStringRef> symbol_name( + base::mac::ScopedCFTypeRef<CFStringRef> symbol_name( CFStringCreateWithCString(kCFAllocatorDefault, name, kCFStringEncodingUTF8)); return CFBundleGetFunctionPointerForName(library->bundle, symbol_name); |