Sync UI: Don't allow setting a passphrase if !EncryptEverythingAllowed
If EncryptEverythingAllowed() was false, then PeopleHandler already skipped the call to EnableEncryptEverything(), but it did still call SetEncryptionPassphrase(). That could get users into a weird state where Sync stopped working. This CL fixes the issue by also skipping the SetEncryptionPassphrase() call in case EncryptEverythingAllowed() is false. Bug: 924847 Change-Id: I3b606e3ea9d0a8f86b865b41eda233dd472cc1eb Reviewed-on: https://chromium-review.googlesource.com/c/1439299Reviewed-by:Michael Giuffrida <michaelpg@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#627004}
Showing
Please register or sign in to comment