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

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

Issue 2782783002: Remove redundant WebLocalFrame* parameter from didFinishDocumentLoad (Closed)
Patch Set: Created 3 years, 9 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/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 79cb5446b6ce68b150ba4a51170ec45477e364c6..387ae805e5c1a55c61ae645a54a356c58fe490de 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -330,15 +330,14 @@ void WebEmbeddedWorkerImpl::loadShadowPage() {
SubstituteData(buffer, "text/html", "UTF-8", KURL())));
}
-void WebEmbeddedWorkerImpl::didFinishDocumentLoad(WebLocalFrame* frame) {
- DCHECK_EQ(frame, m_mainFrame);
+void WebEmbeddedWorkerImpl::didFinishDocumentLoad() {
DCHECK(!m_mainScriptLoader);
DCHECK(m_mainFrame);
DCHECK(m_workerContextClient);
DCHECK(m_loadingShadowPage);
DCHECK(!m_askedToTerminate);
m_loadingShadowPage = false;
- frame->dataSource()->setServiceWorkerNetworkProvider(WTF::wrapUnique(
+ m_mainFrame->dataSource()->setServiceWorkerNetworkProvider(WTF::wrapUnique(
m_workerContextClient->createServiceWorkerNetworkProvider()));
m_mainScriptLoader = WorkerScriptLoader::create();
m_mainScriptLoader->setRequestContext(
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698