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

Unified Diff: content/browser/frame_host/render_frame_message_filter.cc

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing review comments Created 3 years, 8 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: content/browser/frame_host/render_frame_message_filter.cc
diff --git a/content/browser/frame_host/render_frame_message_filter.cc b/content/browser/frame_host/render_frame_message_filter.cc
index 5b8f571ae0ddb1778e3b4fc9e1401d72d1441cd5..35f7afca2ee45579d1cf460f56933375671dc3a8 100644
--- a/content/browser/frame_host/render_frame_message_filter.cc
+++ b/content/browser/frame_host/render_frame_message_filter.cc
@@ -62,6 +62,7 @@ void CreateChildFrameOnUI(int process_id,
const std::string& frame_name,
const std::string& frame_unique_name,
blink::WebSandboxFlags sandbox_flags,
+ const ParsedFeaturePolicyHeader& container_policy,
const FrameOwnerProperties& frame_owner_properties,
int new_routing_id) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -70,9 +71,9 @@ void CreateChildFrameOnUI(int process_id,
// Handles the RenderFrameHost being deleted on the UI thread while
// processing a subframe creation message.
if (render_frame_host) {
- render_frame_host->OnCreateChildFrame(new_routing_id, scope, frame_name,
- frame_unique_name, sandbox_flags,
- frame_owner_properties);
+ render_frame_host->OnCreateChildFrame(
+ new_routing_id, scope, frame_name, frame_unique_name, sandbox_flags,
+ container_policy, frame_owner_properties);
}
}
@@ -305,7 +306,8 @@ void RenderFrameMessageFilter::OnCreateChildFrame(
base::Bind(&CreateChildFrameOnUI, render_process_id_,
params.parent_routing_id, params.scope, params.frame_name,
params.frame_unique_name, params.sandbox_flags,
- params.frame_owner_properties, *new_routing_id));
+ params.container_policy, params.frame_owner_properties,
+ *new_routing_id));
}
void RenderFrameMessageFilter::OnCookiesEnabled(
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager_unittest.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698