• Andrei Salavei's avatar
    Update primary account setup flow during migration · 3c5cfe2c
    Andrei Salavei authored
    Update IdentityManager initialization flow during the AccountManager
    migration. After the offline login the |user_context| has no token,
    hence the Primary account could not be setup for the IdentityManager.
    Add login account to the AccountManager in case it is not presented
    there to properly setup primary account for the IdentityManager.
    The primary account with token will be configured later during
    the AccountManager migration process.
    Remove |DeprecatedSetPrimaryAccountAndUpdateAccountInfo|.
    
    Bug: 987955
    Change-Id: Ia1665e8337e26ca05af9a9abc43ab23816fce14d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131912
    Commit-Queue: Andrei Salavei <solovey@google.com>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Reviewed-by: default avatarKush Sinha <sinhak@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#758775}
    3c5cfe2c
user_session_manager.cc 93.4 KB