Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
index a6db17ab3e805a23cc42d348e39a508050a67824..4bcf3d70bcb5955beef8da8131c6657947f793d6 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
@@ -39,6 +39,7 @@ |
#include "bindings/core/v8/SourceLocation.h" |
#include "bindings/core/v8/V8ThrowException.h" |
#include "core/dom/ExceptionCode.h" |
+#include "core/dom/ExecutionContext.h" |
#include "core/events/Event.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/inspector/WorkerInspectorController.h" |
@@ -157,7 +158,7 @@ |
} |
ScriptPromise ServiceWorkerGlobalScope::skipWaiting(ScriptState* script_state) { |
- ExecutionContext* execution_context = script_state->GetExecutionContext(); |
+ ExecutionContext* execution_context = ExecutionContext::From(script_state); |
// FIXME: short-term fix, see details at: |
// https://codereview.chromium.org/535193002/. |
if (!execution_context) |