Commit f9f331cd authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Use PostCrossThreadTask in DevToolsSession::IOSession

... which is de-facto way of post CrossThreadBind'ed tasks
in Blink.

BUG=None

R=jbroman@chromium.org

Change-Id: Ia48a8ac996faca3e46ebc2142b94dac68f09b2d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1599708
Auto-Submit: Antonio Gomes <tonikitoo@igalia.com>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657329}
parent 7d032b37
......@@ -18,6 +18,7 @@
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/platform/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/web_test_support.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
#include "third_party/inspector_protocol/encoding/encoding.h"
......@@ -86,10 +87,10 @@ class DevToolsSession::IOSession : public mojom::blink::DevToolsSession {
inspector_task_runner_(inspector_task_runner),
session_(std::move(session)),
binding_(this) {
io_task_runner->PostTask(
FROM_HERE, ConvertToBaseCallback(CrossThreadBind(
&IOSession::BindInterface, CrossThreadUnretained(this),
WTF::Passed(std::move(request)))));
PostCrossThreadTask(
*io_task_runner, FROM_HERE,
CrossThreadBind(&IOSession::BindInterface, CrossThreadUnretained(this),
WTF::Passed(std::move(request))));
}
~IOSession() override {}
......
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