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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp

Issue 2333753002: Remove equalIgnoringCase in Source/platform/weborigin/ (Closed)
Patch Set: Rebase to master Created 4 years, 3 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 | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
index 542f6d4175d394a6442e0fe96331d6450d7f11b3..2552ec034dae2b2e65c10aa0c6b965ff19bfde82 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp
@@ -68,23 +68,23 @@ static bool referrerPolicyFromStringImpl(const String& policy, ReferrerPolicyLeg
DCHECK(!policy.isNull());
bool supportLegacyKeywords = (legacyKeywordsSupport == SupportReferrerPolicyLegacyKeywords);
- if (equalIgnoringCase(policy, "no-referrer") || (supportLegacyKeywords && equalIgnoringCase(policy, "never"))) {
+ if (equalIgnoringASCIICase(policy, "no-referrer") || (supportLegacyKeywords && equalIgnoringASCIICase(policy, "never"))) {
*result = ReferrerPolicyNever;
return true;
}
- if (equalIgnoringCase(policy, "unsafe-url") || (supportLegacyKeywords && equalIgnoringCase(policy, "always"))) {
+ if (equalIgnoringASCIICase(policy, "unsafe-url") || (supportLegacyKeywords && equalIgnoringASCIICase(policy, "always"))) {
*result = ReferrerPolicyAlways;
return true;
}
- if (equalIgnoringCase(policy, "origin")) {
+ if (equalIgnoringASCIICase(policy, "origin")) {
*result = ReferrerPolicyOrigin;
return true;
}
- if (equalIgnoringCase(policy, "origin-when-cross-origin") || (supportLegacyKeywords && equalIgnoringCase(policy, "origin-when-crossorigin"))) {
+ if (equalIgnoringASCIICase(policy, "origin-when-cross-origin") || (supportLegacyKeywords && equalIgnoringASCIICase(policy, "origin-when-crossorigin"))) {
*result = ReferrerPolicyOriginWhenCrossOrigin;
return true;
}
- if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || (supportLegacyKeywords && equalIgnoringCase(policy, "default"))) {
+ if (equalIgnoringASCIICase(policy, "no-referrer-when-downgrade") || (supportLegacyKeywords && equalIgnoringASCIICase(policy, "default"))) {
*result = ReferrerPolicyNoReferrerWhenDowngrade;
return true;
}
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698