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

Unified Diff: content/renderer/content_security_policy_util.cc

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/content_security_policy_util.cc
diff --git a/content/renderer/content_security_policy_util.cc b/content/renderer/content_security_policy_util.cc
index 44d85e255ac46911ea796ca3a6198893e4e39b6a..5ba788760015b4b48f3d87f42350ffa4bce1693c 100644
--- a/content/renderer/content_security_policy_util.cc
+++ b/content/renderer/content_security_policy_util.cc
@@ -46,11 +46,10 @@ ContentSecurityPolicy BuildContentSecurityPolicy(
for (const blink::WebString& endpoint : policy.reportEndpoints)
report_endpoints.push_back(endpoint.utf8());
- return ContentSecurityPolicy(policy.disposition, // disposition
- policy.source, // source
- directives, // directives
- report_endpoints, // report_endpoints
- policy.header.utf8()); // header
+ return ContentSecurityPolicy(
+ ContentSecurityPolicyHeader(policy.header.utf8(), policy.disposition,
+ policy.source),
+ directives, report_endpoints);
}
blink::WebContentSecurityPolicyViolation BuildWebContentSecurityPolicyViolation(
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698