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

Unified Diff: base/task_scheduler/task_tracker.cc

Issue 2601623002: TaskTraits: Rename WithSyncPrimitives() to WithBaseSyncPrimitives(). (Closed)
Patch Set: CR gab #6 Created 4 years 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: base/task_scheduler/task_tracker.cc
diff --git a/base/task_scheduler/task_tracker.cc b/base/task_scheduler/task_tracker.cc
index fbeecd3dbe8ec7ca1aadb7a083a21eb5ce5c8ae3..07b0d1216db3ab529be9b6b5b754eb132913ae6d 100644
--- a/base/task_scheduler/task_tracker.cc
+++ b/base/task_scheduler/task_tracker.cc
@@ -226,8 +226,8 @@ bool TaskTracker::RunTask(std::unique_ptr<Task> task,
TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN);
const bool previous_io_allowed =
ThreadRestrictions::SetIOAllowed(task->traits.may_block());
- const bool previous_wait_allowed =
- ThreadRestrictions::SetWaitAllowed(task->traits.with_sync_primitives());
+ const bool previous_wait_allowed = ThreadRestrictions::SetWaitAllowed(
+ task->traits.with_base_sync_primitives());
{
ScopedSetSequenceTokenForCurrentThread
« no previous file with comments | « base/task_scheduler/scheduler_worker_pool_impl_unittest.cc ('k') | base/task_scheduler/task_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698