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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 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/ContentSecurityPolicy.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
index d708cfe37d73ad9a4f6b42e156dd8ac3d8a82054..be7f3e81e882c8b7887bf64de77e3015944803c0 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
@@ -1315,11 +1315,11 @@ void ContentSecurityPolicy::ReportUnsupportedDirective(const String& name) {
String message =
"Unrecognized Content-Security-Policy directive '" + name + "'.\n";
MessageLevel level = kErrorMessageLevel;
- if (EqualIgnoringCase(name, kAllow)) {
+ if (DeprecatedEqualIgnoringCase(name, kAllow)) {
message = kAllowMessage;
- } else if (EqualIgnoringCase(name, kOptions)) {
+ } else if (DeprecatedEqualIgnoringCase(name, kOptions)) {
message = kOptionsMessage;
- } else if (EqualIgnoringCase(name, kPolicyURI)) {
+ } else if (DeprecatedEqualIgnoringCase(name, kPolicyURI)) {
message = kPolicyURIMessage;
} else if (GetDirectiveType(name) != DirectiveType::kUndefined) {
message = "The Content-Security-Policy directive '" + name +
@@ -1417,7 +1417,7 @@ void ContentSecurityPolicy::ReportInvalidSourceExpression(
String message = "The source list for Content Security Policy directive '" +
directive_name + "' contains an invalid source: '" + source +
"'. It will be ignored.";
- if (EqualIgnoringCase(source, "'none'"))
+ if (DeprecatedEqualIgnoringCase(source, "'none'"))
message = message +
" Note that 'none' has no effect unless it is the only "
"expression in the source list.";
@@ -1470,7 +1470,7 @@ bool ContentSecurityPolicy::UrlMatchesSelf(const KURL& url) const {
}
bool ContentSecurityPolicy::ProtocolEqualsSelf(const String& protocol) const {
- return EqualIgnoringCase(protocol, self_protocol_);
+ return DeprecatedEqualIgnoringCase(protocol, self_protocol_);
}
const String& ContentSecurityPolicy::GetSelfProtocol() const {

Powered by Google App Engine
This is Rietveld 408576698