Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
index 595a92cadd5d05324315014afbd9c3cbe04434e4..eecb7b5283a4353ee376ed37d4512049ac939e40 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
@@ -10,7 +10,6 @@ |
#include "bindings/core/v8/ExceptionState.h" |
#include "bindings/core/v8/ScriptState.h" |
#include "bindings/core/v8/SerializedScriptValue.h" |
-#include "core/dom/ExecutionContext.h" |
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
#include "platform/wtf/RefPtr.h" |
#include "public/platform/WebString.h" |
@@ -69,7 +68,7 @@ void ServiceWorkerClient::postMessage(ScriptState* script_state, |
PassRefPtr<SerializedScriptValue> message, |
const MessagePortArray& ports, |
ExceptionState& exception_state) { |
- ExecutionContext* context = ExecutionContext::From(script_state); |
+ ExecutionContext* context = script_state->GetExecutionContext(); |
// Disentangle the port in preparation for sending it to the remote context. |
MessagePortChannelArray channels = |
MessagePort::DisentanglePorts(context, ports, exception_state); |