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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp

Issue 2810743003: Move ScriptState::GetExecutionContext (Part 3) (Closed)
Patch Set: Rebase 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/bindings/core/v8/ScriptPromiseResolver.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
index f1a933580c508f773c88e921109da57deee6f704..b62cd9a2e7b1bbb79bf90b3ee69430fab80ed048 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
@@ -4,13 +4,14 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
+#include "core/dom/ExecutionContext.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/probe/CoreProbes.h"
namespace blink {
ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* script_state)
- : SuspendableObject(script_state->GetExecutionContext()),
+ : SuspendableObject(ExecutionContext::From(script_state)),
state_(kPending),
script_state_(script_state),
timer_(TaskRunnerHelper::Get(TaskType::kMicrotask, GetExecutionContext()),

Powered by Google App Engine
This is Rietveld 408576698