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

Unified Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: CSP send policies in didAddContentSecurityPolicy one by one. Created 3 years, 9 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/web/LocalFrameClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
index 72eb1edd9b4690c68ee52918360f68f4de9844a3..bc746d57a13b267995b68c33239c1ab957664e5a 100644
--- a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
+++ b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
@@ -921,11 +921,11 @@ void LocalFrameClientImpl::didAddContentSecurityPolicy(
const String& headerValue,
ContentSecurityPolicyHeaderType type,
ContentSecurityPolicyHeaderSource source,
- const std::vector<WebContentSecurityPolicyPolicy>& policies) {
+ const WebContentSecurityPolicyPolicy& policy) {
if (m_webFrame->client()) {
m_webFrame->client()->didAddContentSecurityPolicy(
headerValue, static_cast<WebContentSecurityPolicyType>(type),
- static_cast<WebContentSecurityPolicySource>(source), policies);
+ static_cast<WebContentSecurityPolicySource>(source), policy);
}
}

Powered by Google App Engine
This is Rietveld 408576698