ServiceWorker: Start the timer immediately after queuing an event
This CL makes the timer start immediately after an event is enqueued, and erases the event from the queue when it has not started to run yet and the timeout happens. Also, this CL updates kUpdateInterval because the minimum possible timeout is 10 seconds for offline events. Bug: 965802 Change-Id: Ib84c6f3164aa00d525d2f936385a152fdad1fa49 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423698 Commit-Queue: Asami Doi <asamidoi@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#812028}
Showing
Please register or sign in to comment