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

Unified Diff: third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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/network/mime/MIMETypeRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp b/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
index 3d792cfc5069b40a6fbd597f7d0a8eec91112ebb..28526a33147d9b4379635cc588d44b024f11cb91 100644
--- a/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
+++ b/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp
@@ -163,9 +163,10 @@ bool MIMETypeRegistry::isJavaAppletMIMEType(const String& mimeType) {
// followed by any number of specific versions of the JVM, which is why we use
// startsWith()
return mimeType.startsWith("application/x-java-applet",
- TextCaseInsensitive) ||
- mimeType.startsWith("application/x-java-bean", TextCaseInsensitive) ||
- mimeType.startsWith("application/x-java-vm", TextCaseInsensitive);
+ TextCaseASCIIInsensitive) ||
+ mimeType.startsWith("application/x-java-bean",
+ TextCaseASCIIInsensitive) ||
+ mimeType.startsWith("application/x-java-vm", TextCaseASCIIInsensitive);
}
bool MIMETypeRegistry::isSupportedStyleSheetMIMEType(const String& mimeType) {
@@ -174,7 +175,7 @@ bool MIMETypeRegistry::isSupportedStyleSheetMIMEType(const String& mimeType) {
bool MIMETypeRegistry::isSupportedFontMIMEType(const String& mimeType) {
static const unsigned fontLen = 5;
- if (!mimeType.startsWith("font/", TextCaseInsensitive))
+ if (!mimeType.startsWith("font/", TextCaseASCIIInsensitive))
return false;
String subType = mimeType.substring(fontLen).lower();
return subType == "woff" || subType == "woff2" || subType == "otf" ||
« no previous file with comments | « third_party/WebKit/Source/platform/network/HTTPParsers.cpp ('k') | third_party/WebKit/Source/platform/text/SegmentedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698