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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFC.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/modules/nfc/NFC.cpp
diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp
index 87fa30cbc5c1c6e710cf418c240726da319528ce..8f425e8fb7f944b31d6f96102910e21d73894096 100644
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp
@@ -316,7 +316,8 @@ bool isValidTextRecord(const NFCRecord& record) {
return false;
if (record.hasMediaType() &&
- !record.mediaType().startsWith(kPlainTextMimePrefix, TextCaseInsensitive))
+ !record.mediaType().startsWith(kPlainTextMimePrefix,
+ TextCaseUnicodeInsensitive))
return false;
return true;
@@ -339,7 +340,7 @@ bool isValidJSONRecord(const NFCRecord& record) {
return false;
if (record.hasMediaType() &&
- !record.mediaType().startsWith(kJsonMimePrefix, TextCaseInsensitive))
+ !record.mediaType().startsWith(kJsonMimePrefix, TextCaseASCIIInsensitive))
return false;
return true;
« no previous file with comments | « third_party/WebKit/Source/modules/filesystem/DOMFilePath.cpp ('k') | third_party/WebKit/Source/platform/ContentType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698