chromeos: Only set primary account for new user logins
Today the code sets a primary account on every login. This should not be necessary, but there is a comment saying it is done to ensure the google service username is set. That code dates back to 2012 and was apparently added for migration to a new pref. All users should be migrated by now. Remove the comment and only SetPrimaryAccount() for new logins. Add CHECKs that a primary account exists for existing logins. No behavior changes are expected. See comments on this code review for details: https://chromium-review.googlesource.com/c/chromium/src/+/2001018 Bug: none Change-Id: I61e68c38a52a16b11508fb75fe0df8c9391645fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2006261 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@{#732676}
Showing
Please register or sign in to comment