Sync+SupervisedUsers: Invert "EncryptEverythingAllowed" dependency
Previously, SupervisedUserService explicitly called SetEncryptEverythingAllowed, requiring a dependency to SyncService. Now, the "EncryptEverythingAllowed" bit is instead propagated via SyncTypePreferenceProvider, which SupervisedUserService already implements. After this, there is only one remaining dependency from SupervisedUserService to SyncService, namely adding/removing itself as a PreferenceProvider. That will be cleaned up in a followup by wiring it through the factories instead. Bug: 946473 Change-Id: I797abf14bc03aacf2e130a283f3a12c88a2cd358 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1541183 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#644814}
Showing
Please register or sign in to comment