Rename TaskAnnotator::DidQueueTask to better represent semantics
Per the move-only nature of PendingTask (OnceClosure), DidQueueTask()
already had to be invoked *before* queueing the task.
Furthermore, it did modify metadata of the PendingTask and as such
calling it after moving the task would have usually been wrong.
(me aculpa : I'm the one that made task_backtrace mutable to enable this
This confused me when writing
and the upcoming task source observer interface will need a notion of
WillQueueTask() vs DidQueueTask().
This change was extracted from it since this touches a lot of files.
TBRfirstname.lastname@example.org (alarm_timer_chromeos.cc side-effect)
Commit-Queue: Gabriel Charette <email@example.com>
Reviewed-by: Gabriel Charette <firstname.lastname@example.org>
Reviewed-by: François Doray <email@example.com>
Reviewed-by: Alexander Timin <firstname.lastname@example.org>
1 file changed