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

Unified Diff: base/task_scheduler/task_traits.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
« no previous file with comments | « base/task_scheduler/task_traits.h ('k') | base/threading/sequenced_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_traits.cc
diff --git a/base/task_scheduler/task_traits.cc b/base/task_scheduler/task_traits.cc
index 580fdeb20b5d345c08a9b9e6bf705bc140958965..6acf3244f59e475c51ee21a1741ba94259fbfdf3 100644
--- a/base/task_scheduler/task_traits.cc
+++ b/base/task_scheduler/task_traits.cc
@@ -18,7 +18,7 @@ namespace base {
// request defaults if the behavior is critical to the task.
TaskTraits::TaskTraits()
: may_block_(false),
- with_sync_primitives_(false),
+ with_base_sync_primitives_(false),
priority_(internal::GetTaskPriorityForCurrentThread()),
shutdown_behavior_(TaskShutdownBehavior::SKIP_ON_SHUTDOWN) {}
@@ -29,8 +29,8 @@ TaskTraits& TaskTraits::MayBlock() {
return *this;
}
-TaskTraits& TaskTraits::WithSyncPrimitives() {
- with_sync_primitives_ = true;
+TaskTraits& TaskTraits::WithBaseSyncPrimitives() {
+ with_base_sync_primitives_ = true;
return *this;
}
« no previous file with comments | « base/task_scheduler/task_traits.h ('k') | base/threading/sequenced_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698