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

Unified Diff: base/task_scheduler/task.cc

Issue 1890163003: TaskScheduler: Add delayed run time to the constructor of Task. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@7_sequenced
Patch Set: self review Created 4 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
« no previous file with comments | « base/task_scheduler/task.h ('k') | base/task_scheduler/task_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task.cc
diff --git a/base/task_scheduler/task.cc b/base/task_scheduler/task.cc
index ae6340376f230329cfa57b253fcfeea037f30376..e738bed20bccaa385efb7515d8ef6172a991b12d 100644
--- a/base/task_scheduler/task.cc
+++ b/base/task_scheduler/task.cc
@@ -9,11 +9,12 @@ namespace internal {
Task::Task(const tracked_objects::Location& posted_from,
const Closure& task,
- const TaskTraits& traits)
+ const TaskTraits& traits,
+ const TimeTicks& delayed_run_time)
: PendingTask(posted_from,
task,
- TimeTicks(), // No delayed run time.
- false), // Not nestable.
+ delayed_run_time,
+ false), // Not nestable.
traits(traits) {}
Task::~Task() = default;
« no previous file with comments | « base/task_scheduler/task.h ('k') | base/task_scheduler/task_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698