Index: content/browser/frame_host/frame_tree_node.cc |
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc |
index cb345e3cc159f2ad302d3e95a379b6b6d8e80344..b4a59ffafaac70e5f6c79b6203cc43f039a8f715 100644 |
--- a/content/browser/frame_host/frame_tree_node.cc |
+++ b/content/browser/frame_host/frame_tree_node.cc |
@@ -291,10 +291,12 @@ void FrameTreeNode::ResetFeaturePolicyHeader() { |
replication_state_.feature_policy_header.clear(); |
} |
-void FrameTreeNode::AddContentSecurityPolicy( |
- const ContentSecurityPolicyHeader& header) { |
- replication_state_.accumulated_csp_headers.push_back(header); |
- render_manager_.OnDidAddContentSecurityPolicy(header); |
+void FrameTreeNode::AddContentSecurityPolicies( |
+ const std::vector<ContentSecurityPolicyHeader>& headers) { |
+ replication_state_.accumulated_csp_headers.insert( |
+ replication_state_.accumulated_csp_headers.end(), headers.begin(), |
+ headers.end()); |
+ render_manager_.OnDidAddContentSecurityPolicies(headers); |
} |
void FrameTreeNode::ResetCspHeaders() { |