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

Issue 1890163003: TaskScheduler: Add delayed run time to the constructor of Task. (Closed)

Created:
4 years, 8 months ago by fdoray
Modified:
4 years, 8 months ago
Reviewers:
robliao, gab
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@7_sequenced
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

TaskScheduler: Add delayed run time to the constructor of Task. Require a delayed run time (can be a null TimeTicks for no delay) when constructing a Task. There is a single call site for the constructor of Task (excluding unit tests). unit tests). BUG=553459 Committed: https://crrev.com/357c389142869acef70b01ab514b8d88622af321 Cr-Commit-Position: refs/heads/master@{#387944}

Patch Set 1 #

Total comments: 5

Patch Set 2 : add comment on Task's constructor #

Patch Set 3 : self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -29 lines) Patch
M base/task_scheduler/priority_queue_unittest.cc View 1 chunk +12 lines, -12 lines 0 comments Download
M base/task_scheduler/scheduler_worker_thread_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/task_scheduler/sequence_unittest.cc View 1 chunk +10 lines, -5 lines 0 comments Download
M base/task_scheduler/task.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M base/task_scheduler/task.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M base/task_scheduler/task_tracker_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/task_scheduler/utils.cc View 1 chunk +2 lines, -1 line 0 comments Download
M base/task_scheduler/utils_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
fdoray
Can you review this CL? Thanks.
4 years, 8 months ago (2016-04-15 17:33:57 UTC) #2
gab
lgtm w/ comment https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h File base/task_scheduler/task.h (right): https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h#newcode24 base/task_scheduler/task.h:24: const TimeTicks& delayed_run_time); Document parameters (in ...
4 years, 8 months ago (2016-04-18 16:12:14 UTC) #3
gab
https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h File base/task_scheduler/task.h (right): https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h#newcode21 base/task_scheduler/task.h:21: Task(const tracked_objects::Location& posted_from, Also, I don't mind forcing the ...
4 years, 8 months ago (2016-04-18 16:20:39 UTC) #4
fdoray
https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h File base/task_scheduler/task.h (right): https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h#newcode21 base/task_scheduler/task.h:21: Task(const tracked_objects::Location& posted_from, On 2016/04/18 16:20:39, gab wrote: > ...
4 years, 8 months ago (2016-04-18 16:33:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890163003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890163003/40001
4 years, 8 months ago (2016-04-18 16:34:04 UTC) #8
robliao
lgtm
4 years, 8 months ago (2016-04-18 16:59:40 UTC) #9
gab
Thanks, lgtm++ https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h File base/task_scheduler/task.h (right): https://codereview.chromium.org/1890163003/diff/1/base/task_scheduler/task.h#newcode21 base/task_scheduler/task.h:21: Task(const tracked_objects::Location& posted_from, On 2016/04/18 16:33:44, fdoray ...
4 years, 8 months ago (2016-04-18 17:00:13 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-18 17:46:41 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 17:48:11 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/357c389142869acef70b01ab514b8d88622af321
Cr-Commit-Position: refs/heads/master@{#387944}

Powered by Google App Engine
This is Rietveld 408576698