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

Unified Diff: net/base/platform_mime_util_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 | « net/base/network_config_watcher_mac.cc ('k') | net/cert/cert_verify_proc_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/platform_mime_util_mac.mm
diff --git a/net/base/platform_mime_util_mac.mm b/net/base/platform_mime_util_mac.mm
index 99315db98825e126160d6c2935524a460e556304..1b61200e4b467c2289fa7a808ef462ea29794513 100644
--- a/net/base/platform_mime_util_mac.mm
+++ b/net/base/platform_mime_util_mac.mm
@@ -36,17 +36,15 @@ bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
std::string ext_nodot = ext;
if (ext_nodot.length() >= 1 && ext_nodot[0] == L'.')
ext_nodot.erase(ext_nodot.begin());
- base::mac::ScopedCFTypeRef<CFStringRef> ext_ref(
+ base::ScopedCFTypeRef<CFStringRef> ext_ref(
base::SysUTF8ToCFStringRef(ext_nodot));
if (!ext_ref)
return false;
- base::mac::ScopedCFTypeRef<CFStringRef> uti(
- UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,
- ext_ref,
- NULL));
+ base::ScopedCFTypeRef<CFStringRef> uti(UTTypeCreatePreferredIdentifierForTag(
+ kUTTagClassFilenameExtension, ext_ref, NULL));
if (!uti)
return false;
- base::mac::ScopedCFTypeRef<CFStringRef> mime_ref(
+ base::ScopedCFTypeRef<CFStringRef> mime_ref(
UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType));
if (!mime_ref)
return false;
@@ -57,17 +55,15 @@ bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
bool PlatformMimeUtil::GetPreferredExtensionForMimeType(
const std::string& mime_type, base::FilePath::StringType* ext) const {
- base::mac::ScopedCFTypeRef<CFStringRef> mime_ref(
+ base::ScopedCFTypeRef<CFStringRef> mime_ref(
base::SysUTF8ToCFStringRef(mime_type));
if (!mime_ref)
return false;
- base::mac::ScopedCFTypeRef<CFStringRef> uti(
- UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType,
- mime_ref,
- NULL));
+ base::ScopedCFTypeRef<CFStringRef> uti(UTTypeCreatePreferredIdentifierForTag(
+ kUTTagClassMIMEType, mime_ref, NULL));
if (!uti)
return false;
- base::mac::ScopedCFTypeRef<CFStringRef> ext_ref(
+ base::ScopedCFTypeRef<CFStringRef> ext_ref(
UTTypeCopyPreferredTagWithClass(uti, kUTTagClassFilenameExtension));
if (!ext_ref)
return false;
« no previous file with comments | « net/base/network_config_watcher_mac.cc ('k') | net/cert/cert_verify_proc_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698