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

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsers.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/HTTPParsers.cpp
diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
index bef261a7186765e5f6edf7999a670c080296e787..40ddcec6454cad61f728109a9950747f3037bae8 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
@@ -331,7 +331,8 @@ bool parseHTTPRefresh(const String& refresh,
++pos;
skipWhiteSpace(refresh, pos, matcher);
unsigned urlStartPos = pos;
- if (refresh.find("url", urlStartPos, TextCaseInsensitive) == urlStartPos) {
+ if (refresh.find("url", urlStartPos, TextCaseASCIIInsensitive) ==
+ urlStartPos) {
urlStartPos += 3;
skipWhiteSpace(refresh, urlStartPos, matcher);
if (refresh[urlStartPos] == '=') {
@@ -431,7 +432,7 @@ void findCharsetInMediaType(const String& mediaType,
unsigned length = mediaType.length();
while (pos < length) {
- pos = mediaType.find("charset", pos, TextCaseInsensitive);
+ pos = mediaType.find("charset", pos, TextCaseASCIIInsensitive);
if (pos == kNotFound || !pos) {
charsetLen = 0;
return;

Powered by Google App Engine
This is Rietveld 408576698