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

Unified Diff: base/task_scheduler/task_traits.cc

Issue 2831883003: Do not inherit TaskPriority in TaskTraits. (Closed)
Patch Set: CR-gab-9 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: base/task_scheduler/task_traits.cc
diff --git a/base/task_scheduler/task_traits.cc b/base/task_scheduler/task_traits.cc
index 6acf3244f59e475c51ee21a1741ba94259fbfdf3..67a0eeb6169ec1d982ab34ef7209bce47b95597b 100644
--- a/base/task_scheduler/task_traits.cc
+++ b/base/task_scheduler/task_traits.cc
@@ -19,6 +19,7 @@ namespace base {
TaskTraits::TaskTraits()
: may_block_(false),
with_base_sync_primitives_(false),
+ priority_set_explicitly_(false),
gab 2017/04/25 17:16:41 Should be set to true in .WithPriority()?
fdoray 2017/04/25 17:57:48 Sorry bad merge.
priority_(internal::GetTaskPriorityForCurrentThread()),
gab 2017/04/25 17:16:41 This doesn't match CL desc.
fdoray 2017/04/25 17:57:48 Sorry bad merge.
shutdown_behavior_(TaskShutdownBehavior::SKIP_ON_SHUTDOWN) {}
gab 2017/04/25 17:16:41 Use inline member initialization in header for all
fdoray 2017/04/25 17:57:48 We have to choose between initialization in header
gab 2017/04/25 18:01:21 Fast-access matters more than bit savings IMO (i.e

Powered by Google App Engine
This is Rietveld 408576698