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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp 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/core/workers/InProcessWorkerBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
index bf5e32b2d843b74e22b02ce363f8a27952229ae0..7a11c23d5325cfa67c0f368c3e11d635d535e57c 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -7,6 +7,7 @@
#include <memory>
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptState.h"
+#include "core/dom/ExecutionContext.h"
#include "core/events/MessageEvent.h"
#include "core/probe/CoreProbes.h"
#include "core/workers/InProcessWorkerMessagingProxy.h"
@@ -32,7 +33,7 @@ void InProcessWorkerBase::postMessage(ScriptState* script_state,
DCHECK(context_proxy_);
// Disentangle the port in preparation for sending it to the remote context.
MessagePortChannelArray channels = MessagePort::DisentanglePorts(
- script_state->GetExecutionContext(), ports, exception_state);
+ ExecutionContext::From(script_state), ports, exception_state);
if (exception_state.HadException())
return;
context_proxy_->PostMessageToWorkerGlobalScope(std::move(message),

Powered by Google App Engine
This is Rietveld 408576698