Fix UserImageManagerTest when SplitSettingsSync is enabled
UserImageManagerTest.SaveUserImageFromProfileImage was using signin::SetRefreshTokenForPrimaryAccount(), which assumes there is a "sync consented" primary account. SplitSettingsSync does not set a sync-consented account until the user goes through the sync consent screen. This test doesn't care about sync consent, so change it to use SetRefreshTokenForAccount(). This avoids a DCHECK failure when SplitSettingsSync is enabled. Bug: 1060289 Change-Id: I7c2b262707ea04c7a23f374680bcffa1eb876104 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218804 Commit-Queue: James Cook <jamescook@chromium.org> Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Auto-Submit: James Cook <jamescook@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#772461}
Showing
Please register or sign in to comment