• James Cook's avatar
    chromeos: Migrate TokenHandleFetcher to unconsented primary account · 1454ded8
    James Cook authored
    SplitSettingsSync will allow the user to opt-out of browser sync.
    However, IdentityManager::GetPrimaryAccount() assumes the user has
    consented to sync. Switch to using the "unconsented" primary account,
    which exists whether or not the user has consented to sync.
    
    This code doesn't add a DCHECK that the unconsented primary account
    exists because there are managed guest session tests that don't
    have a primary account but still exercise this code path.
    
          and on device
    
    Test: existing login browser tests, manual tests of login on linux
    Bug: 1042400
    Change-Id: I14ee7bcc18c294dee31c26fcc9bed537836516b4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015589
    Commit-Queue: James Cook <jamescook@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#734647}
    1454ded8
token_handle_fetcher.h 2.78 KB