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

Unified Diff: net/base/platform_mime_util_mac.mm

Issue 647883002: git cl format the final third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 cf5b2625a5814db59edd2ff1d2edc441157b3584..725d0175b2ce373cbad96f5166d858cc0d6d4cfa 100644
--- a/net/base/platform_mime_util_mac.mm
+++ b/net/base/platform_mime_util_mac.mm
@@ -31,7 +31,8 @@
namespace net {
bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
- const base::FilePath::StringType& ext, std::string* result) const {
+ const base::FilePath::StringType& ext,
+ std::string* result) const {
std::string ext_nodot = ext;
if (ext_nodot.length() >= 1 && ext_nodot[0] == L'.')
ext_nodot.erase(ext_nodot.begin());
@@ -53,7 +54,8 @@ bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
}
bool PlatformMimeUtil::GetPreferredExtensionForMimeType(
- const std::string& mime_type, base::FilePath::StringType* ext) const {
+ const std::string& mime_type,
+ base::FilePath::StringType* ext) const {
base::ScopedCFTypeRef<CFStringRef> mime_ref(
base::SysUTF8ToCFStringRef(mime_type));
if (!mime_ref)
@@ -86,9 +88,8 @@ void PlatformMimeUtil::GetPlatformExtensionsForMimeType(
// http://mxr.mozilla.org/mozilla-central/search?string=extensionsForMIMEType
// http://www.openradar.me/11384153
// rdar://11384153
- NSArray* extensions_list =
- [[NSURLFileTypeMappings sharedMappings]
- extensionsForMIMEType:base::SysUTF8ToNSString(mime_type)];
+ NSArray* extensions_list = [[NSURLFileTypeMappings sharedMappings]
+ extensionsForMIMEType:base::SysUTF8ToNSString(mime_type)];
#endif // defined(OS_IOS)
if (extensions_list) {

Powered by Google App Engine
This is Rietveld 408576698