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

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

Issue 2551843002: Embedding-CSP: Adding `const` to method signatures. (Closed)
Patch Set: Rebasing Created 4 years 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 f872ff2f0d1f60f6c31dde7a8620032409261bd7..ef5934d9f9795ebaa035b28bf0936609ea2312a0 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
@@ -1595,7 +1595,7 @@ ContentSecurityPolicy::DirectiveType ContentSecurityPolicy::getDirectiveType(
return DirectiveType::Undefined;
}
-bool ContentSecurityPolicy::subsumes(const ContentSecurityPolicy& other) {
+bool ContentSecurityPolicy::subsumes(const ContentSecurityPolicy& other) const {
if (!m_policies.size() || !other.m_policies.size())
return !m_policies.size();
// Embedding-CSP must specify only one policy.

Powered by Google App Engine
This is Rietveld 408576698