• Mikel Astiz's avatar
    Treat pending trusted vault keys as crypto errors · f98299a8
    Mikel Astiz authored
    Prior to this patch, DataTypeManagerImpl::Restart() used
    IsPassphraseRequired() as the way to determine whether encrypted
    datatypes should enter the crypto-error state.
    
    This patch generalizes the concept to accomodate the
    trusted-vault-keys case, which doesn't have a corresponding API to
    IsPassphraseRequired().
    
    To achieve this without poluting the public APIs,
    DataTypeEncryptionHandler is decoupled from SyncUserSettings.
    
    Bug: 1010189
    Change-Id: Ia75f30d11d0c9077c301d6245ac51b5a810b5a7a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873753
    Commit-Queue: Mikel Astiz <mastiz@chromium.org>
    Reviewed-by: default avatarMarc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#708622}
    f98299a8
sync_service_crypto.h 7.54 KB