commit | 2aefbdf4433b1f49728a7e8fca9c6f61436fcb2f | [log] [tgz] |
---|---|---|
author | Mugdha Lakhani <nator@chromium.org> | Mon Aug 12 12:52:50 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Aug 12 12:52:50 2019 |
tree | ca4291e7f163ed08e0588bf5186c7dd69992842e | |
parent | 22ded2ac49224fde1613d6f799c6c6e94ec5fe3c [diff] |
[Background Sync] Separate constructs for sync types. Currently we have points in code where we also schedule a task to wake up Chrome to process periodic sync events when only one-shot sync registrations are present. This doesn't cause any unexpected events to be fired, and we'll cancel the task soon thereafter but it does cause Chrome to be woken up more often than expected. This CL makes two changes to address this: 1. Introduce separate counters for num_firing_registrations, so we don't schedule two failsafe Chrome wake up tasks upon firing one type of sync event. Ensure we only schedule a wakeup for the right type of sync. 2. Introduce separate global wakeup deltas for the two types of sync. Bug: 992100 Change-Id: Id7fadd3dff6a6977cddae2dae949304dbd3e377b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1744415 Commit-Queue: Mugdha Lakhani <nator@chromium.org> Reviewed-by: Rayan Kanso <rayankans@chromium.org> Cr-Commit-Position: refs/heads/master@{#685963}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .