• Boris Sazonov's avatar
    [Signin] Fix sign-out flow for unconsented primary account · 55a072c4
    Boris Sazonov authored
    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: default avatarDavid Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#809317}
    55a072c4
primary_account_manager.cc 15.9 KB