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

Unified Diff: base/task_scheduler/task_traits.cc

Issue 2464963002: TaskScheduler: Remove base::ExecutionMode. (Closed)
Patch Set: CR danakj #17 Created 4 years, 1 month 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/task_scheduler/test_task_factory.h » ('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 5bd868a330e1e5a75fa2d618d2474bc540211d4d..10cbe68efcfc4c97d14be08848ad54ba7d68ce95 100644
--- a/base/task_scheduler/task_traits.cc
+++ b/base/task_scheduler/task_traits.cc
@@ -65,19 +65,6 @@ const char* TaskShutdownBehaviorToString(
return "";
}
-const char* ExecutionModeToString(ExecutionMode execution_mode) {
- switch (execution_mode) {
- case ExecutionMode::PARALLEL:
- return "PARALLEL";
- case ExecutionMode::SEQUENCED:
- return "SEQUENCED";
- case ExecutionMode::SINGLE_THREADED:
- return "SINGLE_THREADED";
- }
- NOTREACHED();
- return "";
-}
-
std::ostream& operator<<(std::ostream& os, const TaskPriority& task_priority) {
os << TaskPriorityToString(task_priority);
return os;
@@ -89,10 +76,4 @@ std::ostream& operator<<(std::ostream& os,
return os;
}
-std::ostream& operator<<(std::ostream& os,
- const ExecutionMode& execution_mode) {
- os << ExecutionModeToString(execution_mode);
- return os;
-}
-
} // namespace base
« no previous file with comments | « base/task_scheduler/task_traits.h ('k') | base/task_scheduler/test_task_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698