[Background Sync] Refactor scheduling of one off tasks.
Refactor the scheduling and cancellation of one off tasks that wake up the browser to process (Periodic) Background Sync registrations into two methods. This gets rid of the method that calls the appropriate method and removes special casing base::TimeDelta::Max() as the delay that causes cancellation of one-off task. Unit tests have also been updated. Bug: 996166 Change-Id: Ic35f4833c627220d464641db82feee8bbfc12ea7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906213 Commit-Queue: Mugdha Lakhani <nator@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Rayan Kanso <rayankans@chromium.org> Cr-Commit-Position: refs/heads/master@{#715284}
Showing
Please register or sign in to comment