Convert ios/chrome/* code to OnPrimaryAccountChanged()
Methods OnPrimaryAccountSet/Cleared are deprecated. This CL changes these calls to OnPrimaryAccountChanged(). As on iOS, the user cannot be signed with a primary account at ConsentLevel::kNotRequired (on iOS, setting a primary account requires the user to go through the sync consent), the migration is defensive and DCHECKs that the OnPrimaryAccountChanged() are always fired for primary account changes at sync level. Bug: 1158855 Change-Id: I071545f01f2a984a365d563997997873d75fd86d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617881 Auto-Submit: Mihai Sardarescu <msarda@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:
Tanmoy Mollik <triploblastic@chromium.org> Cr-Commit-Position: refs/heads/master@{#842020}
Showing
Please register or sign in to comment