• Victor Hugo Vianna Silva's avatar
    Convert DISABLE_REASON_PAUSED into TransportState::PAUSED · 9647e68b
    Victor Hugo Vianna Silva authored
    crrev.com/c/1478878 started exposing the web signout state as a
    DisableReason in the SyncService API. This caused a number of bugs when
    kStopSyncInPausedState was enabled, the main reason being that the
    presence of a DisableReason causes the class to consider
    sync-the-feature as disabled.
    
    The CL removes the DISABLE_REASON_PAUSED and adds a new transport state
    PAUSED. IsEngineAllowedToStart() now checks that a) no reason to disable
    sync-the-feature exists; b) sync is not in the paused state.
    
    The feature flag is still kept as DISABLED_BY_DEFAULT, pending
    experimentation on Canary/Dev.
    
    TBR=parastoog@google.com
    
    Bug: 906995
    Change-Id: I533da440835330ffbbbaaf3862b9343f16149f78
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2302149
    Commit-Queue: Victor Vianna <victorvianna@google.com>
    Reviewed-by: default avatarMarc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#790765}
    9647e68b
profile_sync_service.cc 76 KB