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

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

Issue 2651583007: Plumbing blink::Interface{Provider|Registry} through WebLocalFrame's constructor. (Closed)
Patch Set: Rebasing... 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
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 b5210c7b432df0e81df36add5fd25c536be3031d..ab788c25e6914c969557445df19dab07c6e2f010 100644
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
@@ -177,7 +177,9 @@ WebLocalFrameImpl* createLocalChild(WebRemoteFrame* parent,
WebLocalFrameImpl* frame = toWebLocalFrameImpl(parent->createLocalChild(
WebTreeScopeType::Document, name, nameToUniqueName(name),
- WebSandboxFlags::None, client, previousSibling, properties, nullptr));
+ WebSandboxFlags::None, client,
+ static_cast<TestWebFrameClient*>(client)->interfaceProvider(), nullptr,
+ previousSibling, properties, nullptr));
if (!widgetClient)
widgetClient = defaultWebWidgetClient();
@@ -232,8 +234,9 @@ WebViewImpl* WebViewHelper::initializeWithOpener(
m_webView->setDeviceScaleFactor(
webViewClient->screenInfo().deviceScaleFactor);
m_webView->setDefaultPageScaleLimits(1, 4);
- WebLocalFrame* frame = WebLocalFrameImpl::create(WebTreeScopeType::Document,
- webFrameClient, opener);
+ WebLocalFrame* frame = WebLocalFrameImpl::create(
+ WebTreeScopeType::Document, webFrameClient,
+ webFrameClient->interfaceProvider(), nullptr, opener);
m_webView->setMainFrame(frame);
// TODO(dcheng): The main frame widget currently has a special case.
// Eliminate this once WebView is no longer a WebWidget.
@@ -316,7 +319,8 @@ WebLocalFrame* TestWebFrameClient::createChildFrame(
const WebString& uniqueName,
WebSandboxFlags sandboxFlags,
const WebFrameOwnerProperties& frameOwnerProperties) {
- WebLocalFrame* frame = WebLocalFrame::create(scope, this);
+ WebLocalFrame* frame =
+ WebLocalFrame::create(scope, this, interfaceProvider(), nullptr);
parent->appendChild(frame);
return frame;
}
« 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