[Signin] Fix sign-out flow for unconsented primary account
Fixes two separate issues with the unconsented primary account sign-out flow within PrimaryAccountMutator and PrimaryAccountManager: 1. Check HasUnconsentedPrimaryAccount in PrimaryAccountMutator so that the PrimaryAccountManager::SignOutXYZ is actually invoked even if there's no sync consent. 2. Make sure PrimaryAccountMutator calls GoogleSignedOut using a correct account info - before this change, it would be invoked with an empty account info if there's no sync consent. Bug: 1130526 Change-Id: I9019faeb602a32a499ae7fd3cab09f5634fc69ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421739 Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#809317}
Showing
Please register or sign in to comment