Treat pending trusted vault keys as crypto errors
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:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#708622}
Showing
Please register or sign in to comment