• Marc Treib's avatar
    Sync+SupervisedUsers: Invert "EncryptEverythingAllowed" dependency · b3bbf1d2
    Marc Treib authored
    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: default avatarMikel Astiz <mastiz@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#644814}
    b3bbf1d2
profile_sync_service.cc 77.6 KB