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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Created 3 years, 8 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
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);

Powered by Google App Engine
This is Rietveld 408576698