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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPSource.cpp

Issue 2869893004: CSP: Replace DeprecatedEqualIgnoringCase with EqualIgnoringASCIICase. (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
index 00311d6ee9899ad2ea883724a8c693f8159274c2..d23e194e500c801ac2adb085c1a82d6d431828b2 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSource.cpp
@@ -129,9 +129,8 @@ CSPSource::PortMatchingResult CSPSource::PortMatches(
}
bool is_scheme_http; // needed for detecting an upgrade when the port is 0
- is_scheme_http = scheme_.IsEmpty()
- ? policy_->ProtocolEqualsSelf("http")
- : DeprecatedEqualIgnoringCase("http", scheme_);
+ is_scheme_http = scheme_.IsEmpty() ? policy_->ProtocolEqualsSelf("http")
+ : EqualIgnoringASCIICase("http", scheme_);
if ((port_ == 80 || (port_ == 0 && is_scheme_http)) &&
(port == 443 || (port == 0 && DefaultPortForProtocol(protocol) == 443)))

Powered by Google App Engine
This is Rietveld 408576698