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

Unified Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp

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: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
index af4364ddcf8629a994498a99e81a27d166ca339e..a3e3c7836df00d546afc52059a320452f223ff6a 100644
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
@@ -166,7 +166,7 @@ WebLocalFrameImpl* CreateLocalChild(WebRemoteFrame* parent,
WebLocalFrameImpl* frame = ToWebLocalFrameImpl(parent->CreateLocalChild(
WebTreeScopeType::kDocument, name, WebSandboxFlags::kNone, client,
static_cast<TestWebFrameClient*>(client)->GetInterfaceProvider(), nullptr,
- previous_sibling, properties, nullptr));
+ previous_sibling, WebParsedFeaturePolicy(), properties, nullptr));
if (!widget_client)
widget_client = DefaultWebWidgetClient();
@@ -178,9 +178,9 @@ WebLocalFrameImpl* CreateLocalChild(WebRemoteFrame* parent,
WebRemoteFrameImpl* CreateRemoteChild(WebRemoteFrame* parent,
WebRemoteFrameClient* client,
const WebString& name) {
- return ToWebRemoteFrameImpl(
- parent->CreateRemoteChild(WebTreeScopeType::kDocument, name,
- WebSandboxFlags::kNone, client, nullptr));
+ return ToWebRemoteFrameImpl(parent->CreateRemoteChild(
+ WebTreeScopeType::kDocument, name, WebSandboxFlags::kNone,
+ WebParsedFeaturePolicy(), client, nullptr));
}
WebViewHelper::WebViewHelper(SettingOverrider* setting_overrider)
@@ -306,6 +306,7 @@ WebLocalFrame* TestWebFrameClient::CreateChildFrame(
const WebString& name,
const WebString& fallback_name,
WebSandboxFlags sandbox_flags,
+ const WebParsedFeaturePolicy& container_policy,
const WebFrameOwnerProperties& frame_owner_properties) {
WebLocalFrame* frame =
WebLocalFrame::Create(scope, this, GetInterfaceProvider(), nullptr);
« no previous file with comments | « third_party/WebKit/Source/web/tests/FrameTestHelpers.h ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698