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

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

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert 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 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);

Powered by Google App Engine
This is Rietveld 408576698