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 eecb7b5283a4353ee376ed37d4512049ac939e40..595a92cadd5d05324315014afbd9c3cbe04434e4 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp |
@@ -10,6 +10,7 @@ |
#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" |
@@ -68,7 +69,7 @@ |
PassRefPtr<SerializedScriptValue> message, |
const MessagePortArray& ports, |
ExceptionState& exception_state) { |
- ExecutionContext* context = script_state->GetExecutionContext(); |
+ ExecutionContext* context = ExecutionContext::From(script_state); |
// Disentangle the port in preparation for sending it to the remote context. |
MessagePortChannelArray channels = |
MessagePort::DisentanglePorts(context, ports, exception_state); |