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

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

Issue 1726903002: Rename WorkerOrWorkletGlobalScope::script() to scriptController() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
index a673ecfb72d62a8465dc947e4c6b593a4c786fcc..c2383a70bdd6758ffb780950bf2d3443364c7524 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -230,8 +230,8 @@ void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success)
void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext()
{
- ScriptState::Scope scope(workerGlobalScope()->script()->scriptState());
- client().didInitializeWorkerContext(workerGlobalScope()->script()->context(), WebURL(m_documentURL));
+ ScriptState::Scope scope(workerGlobalScope()->scriptController()->scriptState());
+ client().didInitializeWorkerContext(workerGlobalScope()->scriptController()->context(), WebURL(m_documentURL));
}
void ServiceWorkerGlobalScopeProxy::workerGlobalScopeStarted(WorkerGlobalScope* workerGlobalScope)
@@ -250,7 +250,7 @@ void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed()
void ServiceWorkerGlobalScopeProxy::willDestroyWorkerGlobalScope()
{
v8::HandleScope handleScope(workerGlobalScope()->thread()->isolate());
- client().willDestroyWorkerContext(workerGlobalScope()->script()->context());
+ client().willDestroyWorkerContext(workerGlobalScope()->scriptController()->context());
m_workerGlobalScope = nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698