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

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

Issue 2653623004: [WIP NOT FOR COMMIT] Feature policy: Add basic algorithm for supporting frame policies, start plumb… (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 094d3fbebeec43fcec050f6e441652f9fab44fd6..ed413e0d8e0586038b4b18866dcc187a5ae22f7c 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -267,10 +267,10 @@ void FrameTreeNode::ResetFeaturePolicy() {
replication_state_.feature_policy_header.clear();
if (parent()) {
feature_policy_ = FeaturePolicy::CreateFromParentPolicy(
- parent()->feature_policy_.get(), current_origin());
+ parent()->feature_policy_.get(), nullptr, current_origin());
} else {
- feature_policy_ =
- FeaturePolicy::CreateFromParentPolicy(nullptr, current_origin());
+ feature_policy_ = FeaturePolicy::CreateFromParentPolicy(nullptr, nullptr,
+ current_origin());
}
}
« no previous file with comments | « no previous file | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698