[Background Sync] Update delay_until calculation.
For Periodic Background Sync, we decide the next event time for a registration based on other existing periodicsync registrations for this origin. Skip this check for one-shot Background Sync registrations. Currently, if we have both a one-shot and a periodic Background Sync registration for a given origin, this check will be applied to the one-shot sync registration as well. This is unnecessary. This CL removes it and adds a unit test. Bug: 989003 Change-Id: Iff2b1d0444878444c6c1743f6ae0882caca86dc8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1725638Reviewed-by:Rayan Kanso <rayankans@chromium.org> Commit-Queue: Mugdha Lakhani <nator@chromium.org> Cr-Commit-Position: refs/heads/master@{#682268}
Showing
Please register or sign in to comment