[sequencemanager] Do not set |delayed_run_time| for immediate tasks.

Prior to this CL, the SequenceManager set |PendingTask::delayed_run_time|
for immediate tasks when the "add queue time to tasks" option was
enabled. This caused the responsiveness watcher to consider an interval
as janky only when a long task was running, not when a task was queued
for a long time as intended.

With this CL, SequenceManager only sets |PendingTask::delayed_run_time|
for delayed tasks. The responsiveness watcher is modified to keep
recording the same jank as before, to ensure that we can easily notice
if there are real jank regressions. In an upcoming CL, we will modify
the responsiveness watcher to record a new jank histogram that takes
into account queuing time.

Bug: 1029137
Change-Id: I8394cb42a8b6d77b01eb38cad1242fc4b0f6c74d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1940452
Reviewed-by: Alexei Svitkine <[email protected]>
Reviewed-by: Erik Chen <[email protected]>
Reviewed-by: Alex Clarke <[email protected]>
Commit-Queue: François Doray <[email protected]>
Cr-Commit-Position: refs/heads/master@{#721511}
10 files changed