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

Unified Diff: base/task_scheduler/task_traits.cc

Issue 2871973003: Remove methods associated with the builder pattern from TaskTraits. (Closed)
Patch Set: immutable 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 | « base/task_scheduler/task_traits.h ('k') | no next file » | 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 ae522f4b6a237703590639da53278abc8014fe3e..e82e303840d413994389ec727924df65b25194f3 100644
--- a/base/task_scheduler/task_traits.cc
+++ b/base/task_scheduler/task_traits.cc
@@ -12,28 +12,6 @@
namespace base {
-TaskTraits& TaskTraits::MayBlock() {
- may_block_ = true;
- return *this;
-}
-
-TaskTraits& TaskTraits::WithBaseSyncPrimitives() {
- with_base_sync_primitives_ = true;
- return *this;
-}
-
-TaskTraits& TaskTraits::WithPriority(TaskPriority priority) {
- priority_set_explicitly_ = true;
- priority_ = priority;
- return *this;
-}
-
-TaskTraits& TaskTraits::WithShutdownBehavior(
- TaskShutdownBehavior shutdown_behavior) {
- shutdown_behavior_ = shutdown_behavior;
- return *this;
-}
-
const char* TaskPriorityToString(TaskPriority task_priority) {
switch (task_priority) {
case TaskPriority::BACKGROUND:
« no previous file with comments | « base/task_scheduler/task_traits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698