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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2651583007: Plumbing blink::Interface{Provider|Registry} through WebLocalFrame's constructor. (Closed)
Patch Set: ScreenWakeLockTest 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/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index c3fd42df42551b138c48e0e11f9f15548132b58b..de544fb4f0a94456bed4e02936e07b761d6dbc15 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -132,7 +132,8 @@ void WebSharedWorkerImpl::initializeLoader() {
// Browser process when the worker is created (similar to
// RenderThread::OnCreateNewView).
m_mainFrame = toWebLocalFrameImpl(
- WebLocalFrame::create(WebTreeScopeType::Document, this));
+ WebLocalFrame::create(WebTreeScopeType::Document, this,
+ Platform::current()->interfaceProvider(), nullptr));
Łukasz Anforowicz 2017/01/23 23:38:16 blink::WebEmbeddedWorkerImpl used to override inte
m_webView->setMainFrame(m_mainFrame.get());
m_mainFrame->setDevToolsAgentClient(this);
@@ -200,10 +201,6 @@ int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource) {
return m_networkProvider->serviceWorkerID(dataSource);
}
-InterfaceProvider* WebSharedWorkerImpl::interfaceProvider() {
- return Platform::current()->interfaceProvider();
-}
-
void WebSharedWorkerImpl::sendProtocolMessage(int sessionId,
int callId,
const WebString& message,

Powered by Google App Engine
This is Rietveld 408576698