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

Unified Diff: trunk/src/net/http/http_security_headers.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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
« no previous file with comments | « trunk/src/net/http/http_response_headers.cc ('k') | trunk/src/net/http/http_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/http/http_security_headers.cc
===================================================================
--- trunk/src/net/http/http_security_headers.cc (revision 289319)
+++ trunk/src/net/http/http_security_headers.cc (working copy)
@@ -196,11 +196,11 @@
case DIRECTIVE_END:
if (IsAsciiWhitespace(*tokenizer.token_begin()))
continue;
- if (base::LowerCaseEqualsASCII(tokenizer.token(), "max-age")) {
+ if (LowerCaseEqualsASCII(tokenizer.token(), "max-age")) {
state = AFTER_MAX_AGE_LABEL;
max_age_observed++;
- } else if (base::LowerCaseEqualsASCII(tokenizer.token(),
- "includesubdomains")) {
+ } else if (LowerCaseEqualsASCII(tokenizer.token(),
+ "includesubdomains")) {
state = AFTER_INCLUDE_SUBDOMAINS;
include_subdomains_observed++;
include_subdomains_candidate = true;
@@ -293,20 +293,20 @@
equals.first = Strip(equals.first);
equals.second = Strip(equals.second);
- if (base::LowerCaseEqualsASCII(equals.first, "max-age")) {
+ if (LowerCaseEqualsASCII(equals.first, "max-age")) {
if (equals.second.empty() ||
!MaxAgeToInt(equals.second.begin(), equals.second.end(),
&max_age_candidate)) {
return false;
}
parsed_max_age = true;
- } else if (base::LowerCaseEqualsASCII(equals.first, "pin-sha1")) {
+ } else if (LowerCaseEqualsASCII(equals.first, "pin-sha1")) {
if (!ParseAndAppendPin(equals.second, HASH_VALUE_SHA1, &pins))
return false;
- } else if (base::LowerCaseEqualsASCII(equals.first, "pin-sha256")) {
+ } else if (LowerCaseEqualsASCII(equals.first, "pin-sha256")) {
if (!ParseAndAppendPin(equals.second, HASH_VALUE_SHA256, &pins))
return false;
- } else if (base::LowerCaseEqualsASCII(equals.first, "includesubdomains")) {
+ } else if (LowerCaseEqualsASCII(equals.first, "includesubdomains")) {
include_subdomains_candidate = true;
} else {
// Silently ignore unknown directives for forward compatibility.
« no previous file with comments | « trunk/src/net/http/http_response_headers.cc ('k') | trunk/src/net/http/http_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698