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

Unified Diff: content/browser/frame_host/render_frame_host_manager.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/browser/frame_host/render_frame_host_manager.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 7a0a03e11614777ea139d78edda2cd5c5b219390..3d168f62f7fe33cd244d82d7c1123f5c02dd3247 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -911,14 +911,14 @@ void RenderFrameHostManager::OnDidUpdateName(const std::string& name,
}
}
-void RenderFrameHostManager::OnDidAddContentSecurityPolicy(
- const ContentSecurityPolicyHeader& header) {
+void RenderFrameHostManager::OnDidAddContentSecurityPolicies(
+ const std::vector<ContentSecurityPolicyHeader>& headers) {
if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
return;
for (const auto& pair : proxy_hosts_) {
- pair.second->Send(new FrameMsg_AddContentSecurityPolicy(
- pair.second->GetRoutingID(), header));
+ pair.second->Send(new FrameMsg_AddContentSecurityPolicies(
+ pair.second->GetRoutingID(), headers));
}
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698