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

Unified Diff: mojo/edk/system/channel_posix.cc

Issue 2888053002: Rename TaskRunner::RunsTasksOnCurrentThread() in //extensions, //headless, //mojo (Closed)
Patch Set: rebase Created 3 years, 7 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 | « headless/public/util/generic_url_request_job.cc ('k') | mojo/edk/system/channel_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/channel_posix.cc
diff --git a/mojo/edk/system/channel_posix.cc b/mojo/edk/system/channel_posix.cc
index 8b4ca7fdf3a754e32c0ac8d9096f82bc6257289b..b6a457d4f3ccb42798ad7778ea2bde4b23a8a31d 100644
--- a/mojo/edk/system/channel_posix.cc
+++ b/mojo/edk/system/channel_posix.cc
@@ -103,7 +103,7 @@ class ChannelPosix : public Channel,
}
void Start() override {
- if (io_task_runner_->RunsTasksOnCurrentThread()) {
+ if (io_task_runner_->RunsTasksInCurrentSequence()) {
StartOnIOThread();
} else {
io_task_runner_->PostTask(
@@ -139,7 +139,7 @@ class ChannelPosix : public Channel,
}
void LeakHandle() override {
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
leak_handle_ = true;
}
@@ -239,7 +239,7 @@ class ChannelPosix : public Channel,
return;
if (!write_watcher_)
return;
- if (io_task_runner_->RunsTasksOnCurrentThread()) {
+ if (io_task_runner_->RunsTasksInCurrentSequence()) {
pending_write_ = true;
base::MessageLoopForIO::current()->WatchFileDescriptor(
handle_.get().handle, false /* persistent */,
@@ -268,7 +268,7 @@ class ChannelPosix : public Channel,
// base::MessageLoop::DestructionObserver:
void WillDestroyCurrentMessageLoop() override {
- DCHECK(io_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
if (self_)
ShutDownOnIOThread();
}
« no previous file with comments | « headless/public/util/generic_url_request_job.cc ('k') | mojo/edk/system/channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698