chromeos: Migrate TokenHandleFetcher to unconsented primary account
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:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#734647}
Showing
Please register or sign in to comment