commit | 690a7b4e6bfdb7d26295688299ff2e44cef4e3aa | [log] [tgz] |
---|---|---|
author | Josh Nohle <nohle@google.com> | Mon May 20 16:31:53 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 20 16:31:53 2019 |
tree | 59d780ebb328ac4666a308c76c8d3218baec011f | |
parent | 2bb9fa3b7cd5b1538724547668e8313ca97e6ab7 [diff] |
[Enrollment v2] Refactor CryptAuth v2 Enrollment schedulers See design at http://go/cros-devicesync-v2-scheduling In preparation for DeviceSync v2, we refactor the v2 Enrollment schedulers. DeviceSync v2 scheduling will be added to these schedulers in a subsequent CL. In this CL, we * Move ownership of the scheduler from the Enrollment manager to DeviceSyncImpl. This way the scheduler can be shared between the v2 Enrollment and DeviceSync managers. * Move all caching and invocation reason determination out of the Enrollment manager and into the scheduler. * Create a pending-request caching mechanism in the scheduler. This allows us store an Enrollment request that is made before scheduling has been started, while an Enrollment attempt is in progress, or while we are offline. * The latter point enables us to easily merge the "persistent" and "network-aware" schedulers into a single implementation. Note: M76 branch is May 30th, so these changes will make it into the v2 Enrollment rollout. Bug: 899080 Change-Id: Ia994141f7f245ff316f0df93b2f979c3756d94ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1606244 Commit-Queue: Josh Nohle <nohle@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#661367}
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 .