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

Unified Diff: third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword 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
Index: third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
index 2dd45a83ad98f301b09236437bd9a904c2e6aac8..a193e52defcba9073733ea36961e3bef27baffe1 100644
--- a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
+++ b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
@@ -38,7 +38,7 @@ base::MessageLoop* LazySchedulerMessageLoopDelegateForTests::EnsureMessageLoop()
const {
if (message_loop_)
return message_loop_;
- DCHECK(RunsTasksOnCurrentThread());
+ DCHECK(RunsTasksInCurrentSequence());
message_loop_ = base::MessageLoop::current();
DCHECK(message_loop_);
original_task_runner_ = message_loop_->task_runner();
@@ -85,7 +85,7 @@ bool LazySchedulerMessageLoopDelegateForTests::PostNonNestableDelayedTask(
from_here, std::move(task), delay);
}
-bool LazySchedulerMessageLoopDelegateForTests::RunsTasksOnCurrentThread()
+bool LazySchedulerMessageLoopDelegateForTests::RunsTasksInCurrentSequence()
const {
return thread_id_ == base::PlatformThread::CurrentId();
}

Powered by Google App Engine
This is Rietveld 408576698