• Victor Hugo Vianna Silva's avatar
    [sync/android] Make decoupled_from_master_sync a one-shot device pref · e74ac106
    Victor Hugo Vianna Silva authored
    Before this CL, sign-out would clear the pref representing whether Sync
    should be decoupled from the Android master sync toggle. This CL
    removes the clean-up logic and also makes sure that the pref is set
    whenever ProfileSyncService detects there's no syncing account (either
    on browser startup, or after sign-out). Indeed, by the time the
    DecoupleSyncFromAndroidMasterSync feature is enabled, only users who
    were already syncing but had the master toggle disabled should remain
    in the coupled state.
    
    Bug: 1105795
    Change-Id: If5e36080159150fe976885b469696103df890ed4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2539202
    Commit-Queue: Victor Vianna <victorvianna@google.com>
    Reviewed-by: default avatarMarc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#827887}
    e74ac106
pref_names.cc 5.11 KB