Commit 64946f11 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Remove TaskRunnerHelper usages in bindings/

This is one step of all replacings at https://chromium-review.googlesource.com/c/chromium/src/+/743663

Bug: 777775
Change-Id: Ifdd45ab27dfbb2fdea8e8ff0dd668e083c1f8244
Reviewed-on: https://chromium-review.googlesource.com/746603Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512870}
parent 05df6652
......@@ -5,8 +5,8 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "core/dom/ExecutionContext.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/probe/CoreProbes.h"
#include "public/platform/TaskType.h"
namespace blink {
......@@ -14,7 +14,7 @@ ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* script_state)
: SuspendableObject(ExecutionContext::From(script_state)),
state_(kPending),
script_state_(script_state),
timer_(TaskRunnerHelper::Get(TaskType::kMicrotask, GetExecutionContext()),
timer_(GetExecutionContext()->GetTaskRunner(TaskType::kMicrotask),
this,
&ScriptPromiseResolver::OnTimerFired),
resolver_(script_state) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment