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

Unified Diff: third_party/WebKit/Source/platform/MIMETypeFromURL.cpp

Issue 2388303002: reflow comments in platform/ (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/platform/MIMETypeFromURL.cpp
diff --git a/third_party/WebKit/Source/platform/MIMETypeFromURL.cpp b/third_party/WebKit/Source/platform/MIMETypeFromURL.cpp
index 6b9966c508fe5b2ffeb683e54b895e13d7865e70..0ebfc2d00407320483f20e36a54990b1fd927147 100644
--- a/third_party/WebKit/Source/platform/MIMETypeFromURL.cpp
+++ b/third_party/WebKit/Source/platform/MIMETypeFromURL.cpp
@@ -40,7 +40,8 @@ String mimeTypeFromDataURL(const String& url) {
if (index != kNotFound) {
if (index > 5)
return url.substring(5, index - 5).lower();
- return "text/plain"; // Data URLs with no MIME type are considered text/plain.
+ // Data URLs with no MIME type are considered text/plain.
+ return "text/plain";
}
return "";
}
@@ -49,7 +50,8 @@ String mimeTypeFromURL(const KURL& url) {
String decodedPath = decodeURLEscapeSequences(url.path());
String extension = decodedPath.substring(decodedPath.reverseFind('.') + 1);
- // We don't use MIMETypeRegistry::getMIMETypeForPath() because it returns "application/octet-stream" upon failure
+ // We don't use MIMETypeRegistry::getMIMETypeForPath() because it returns
+ // "application/octet-stream" upon failure
return MIMETypeRegistry::getMIMETypeForExtension(extension);
}
« no previous file with comments | « third_party/WebKit/Source/platform/MIMETypeFromURL.h ('k') | third_party/WebKit/Source/platform/MIMETypeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698