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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: fixed build error and commments Created 3 years, 8 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/base/task_queue_manager.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
index 4265f8f3e199827d85c7c7e6d7d5783944dfc343..50b02879ccc86fe5b08c478e95559495dd1c6e25 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
@@ -70,7 +70,7 @@ TaskQueueManager::TaskQueueManager(
observer_(nullptr),
deletion_sentinel_(new DeletionSentinel()),
weak_factory_(this) {
- DCHECK(delegate->RunsTasksOnCurrentThread());
+ DCHECK(delegate->RunsTasksInCurrentSequence());
TRACE_EVENT_OBJECT_CREATED_WITH_ID(disabled_by_default_tracing_category,
"TaskQueueManager", this);
selector_.SetTaskQueueSelectorObserver(this);
@@ -577,8 +577,8 @@ void TaskQueueManager::MaybeRecordTaskDelayHistograms(
}
}
-bool TaskQueueManager::RunsTasksOnCurrentThread() const {
- return delegate_->RunsTasksOnCurrentThread();
+bool TaskQueueManager::RunsTasksInCurrentSequence() const {
+ return delegate_->RunsTasksInCurrentSequence();
}
void TaskQueueManager::SetWorkBatchSize(int work_batch_size) {

Powered by Google App Engine
This is Rietveld 408576698