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

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

Issue 2612523002: Move bindings timers to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7ef0106c47ffed5b205758d6505c5aa68fb1cc49..37d6ee3add11bfd9d5e59bf84b8e97323cbb0755 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.cpp
@@ -4,6 +4,7 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/inspector/InspectorInstrumentation.h"
namespace blink {
@@ -12,7 +13,9 @@ ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* scriptState)
: SuspendableObject(scriptState->getExecutionContext()),
m_state(Pending),
m_scriptState(scriptState),
- m_timer(this, &ScriptPromiseResolver::onTimerFired),
+ m_timer(TaskRunnerHelper::get(TaskType::Microtask, getExecutionContext()),
+ this,
+ &ScriptPromiseResolver::onTimerFired),
m_resolver(scriptState)
#if ENABLE(ASSERT)
,
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698