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 c2383a70bdd6758ffb780950bf2d3443364c7524..c7afad055e63bd0aca4ddd7bc98a2f1af4da1e3b 100644 |
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp |
@@ -38,7 +38,7 @@ |
#include "core/events/MessageEvent.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/workers/WorkerGlobalScope.h" |
-#include "core/workers/WorkerThread.h" |
+#include "core/workers/WorkerScript.h" |
#include "modules/background_sync/SyncEvent.h" |
#include "modules/fetch/Headers.h" |
#include "modules/geofencing/CircularGeofencingRegion.h" |
@@ -249,12 +249,12 @@ void ServiceWorkerGlobalScopeProxy::workerGlobalScopeClosed() |
void ServiceWorkerGlobalScopeProxy::willDestroyWorkerGlobalScope() |
{ |
- v8::HandleScope handleScope(workerGlobalScope()->thread()->isolate()); |
+ v8::HandleScope handleScope(workerGlobalScope()->workerScript()->isolate()); |
client().willDestroyWorkerContext(workerGlobalScope()->scriptController()->context()); |
m_workerGlobalScope = nullptr; |
} |
-void ServiceWorkerGlobalScopeProxy::workerThreadTerminated() |
+void ServiceWorkerGlobalScopeProxy::workerScriptTerminated() |
{ |
client().workerContextDestroyed(); |
} |