Index: content/browser/frame_host/render_frame_host_manager_unittest.cc |
diff --git a/content/browser/frame_host/render_frame_host_manager_unittest.cc b/content/browser/frame_host/render_frame_host_manager_unittest.cc |
index 597ccd1dad078ad94cffc4881c5cc7a32e7df764..cb59bbd51efbb0b734e2078628fa45098525c10d 100644 |
--- a/content/browser/frame_host/render_frame_host_manager_unittest.cc |
+++ b/content/browser/frame_host/render_frame_host_manager_unittest.cc |
@@ -1944,11 +1944,13 @@ TEST_F(RenderFrameHostManagerTestWithSiteIsolation, DetachPendingChild) { |
contents()->GetMainFrame()->OnCreateChildFrame( |
contents()->GetMainFrame()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName1", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
contents()->GetMainFrame()->OnCreateChildFrame( |
contents()->GetMainFrame()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName2", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
RenderFrameHostManager* root_manager = |
contents()->GetFrameTree()->root()->render_manager(); |
RenderFrameHostManager* iframe1 = |
@@ -2083,7 +2085,8 @@ TEST_F(RenderFrameHostManagerTestWithSiteIsolation, |
contents1->GetMainFrame()->OnCreateChildFrame( |
contents1->GetMainFrame()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame_name", "uniqueName1", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
RenderFrameHostManager* iframe = |
contents()->GetFrameTree()->root()->child_at(0)->render_manager(); |
NavigationEntryImpl entry(NULL /* instance */, kUrl2, |
@@ -2132,7 +2135,8 @@ TEST_F(RenderFrameHostManagerTestWithSiteIsolation, |
main_rfh->OnCreateChildFrame( |
main_rfh->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, std::string(), "uniqueName1", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
RenderFrameHostManager* subframe_rfhm = |
contents()->GetFrameTree()->root()->child_at(0)->render_manager(); |
@@ -2290,10 +2294,10 @@ TEST_F(RenderFrameHostManagerTest, TraverseComplexOpenerChain) { |
int process_id = root1->current_frame_host()->GetProcess()->GetID(); |
tree1->AddFrame(root1, process_id, 12, blink::WebTreeScopeType::kDocument, |
std::string(), "uniqueName0", blink::WebSandboxFlags::kNone, |
- FrameOwnerProperties()); |
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties()); |
tree1->AddFrame(root1, process_id, 13, blink::WebTreeScopeType::kDocument, |
std::string(), "uniqueName1", blink::WebSandboxFlags::kNone, |
- FrameOwnerProperties()); |
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties()); |
std::unique_ptr<TestWebContents> tab2( |
TestWebContents::Create(browser_context(), nullptr)); |
@@ -2303,10 +2307,10 @@ TEST_F(RenderFrameHostManagerTest, TraverseComplexOpenerChain) { |
process_id = root2->current_frame_host()->GetProcess()->GetID(); |
tree2->AddFrame(root2, process_id, 22, blink::WebTreeScopeType::kDocument, |
std::string(), "uniqueName2", blink::WebSandboxFlags::kNone, |
- FrameOwnerProperties()); |
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties()); |
tree2->AddFrame(root2, process_id, 23, blink::WebTreeScopeType::kDocument, |
std::string(), "uniqueName3", blink::WebSandboxFlags::kNone, |
- FrameOwnerProperties()); |
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties()); |
std::unique_ptr<TestWebContents> tab3( |
TestWebContents::Create(browser_context(), nullptr)); |
@@ -2321,7 +2325,7 @@ TEST_F(RenderFrameHostManagerTest, TraverseComplexOpenerChain) { |
process_id = root4->current_frame_host()->GetProcess()->GetID(); |
tree4->AddFrame(root4, process_id, 42, blink::WebTreeScopeType::kDocument, |
std::string(), "uniqueName4", blink::WebSandboxFlags::kNone, |
- FrameOwnerProperties()); |
+ ParsedFeaturePolicyHeader(), FrameOwnerProperties()); |
root1->child_at(1)->SetOpener(root1->child_at(1)); |
root1->SetOpener(root2->child_at(1)); |
@@ -2370,15 +2374,18 @@ TEST_F(RenderFrameHostManagerTest, PageFocusPropagatesToSubframeProcesses) { |
main_test_rfh()->OnCreateChildFrame( |
main_test_rfh()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
main_test_rfh()->OnCreateChildFrame( |
main_test_rfh()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame2", "uniqueName2", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
main_test_rfh()->OnCreateChildFrame( |
main_test_rfh()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame3", "uniqueName3", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
FrameTreeNode* root = contents()->GetFrameTree()->root(); |
RenderFrameHostManager* child1 = root->child_at(0)->render_manager(); |
@@ -2468,7 +2475,8 @@ TEST_F(RenderFrameHostManagerTest, |
main_test_rfh()->OnCreateChildFrame( |
main_test_rfh()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
FrameTreeNode* root = contents()->GetFrameTree()->root(); |
RenderFrameHostManager* child = root->child_at(0)->render_manager(); |
@@ -3012,7 +3020,8 @@ TEST_F(RenderFrameHostManagerTestWithSiteIsolation, |
main_test_rfh()->OnCreateChildFrame( |
main_test_rfh()->GetProcess()->GetNextRoutingID(), |
blink::WebTreeScopeType::kDocument, "frame1", "uniqueName1", |
- blink::WebSandboxFlags::kNone, FrameOwnerProperties()); |
+ blink::WebSandboxFlags::kNone, ParsedFeaturePolicyHeader(), |
+ FrameOwnerProperties()); |
FrameTreeNode* root = contents()->GetFrameTree()->root(); |
RenderFrameHostManager* child = root->child_at(0)->render_manager(); |