commit | bc16abbc25d71745fc414c65df8046bd87aa2197 | [log] [tgz] |
---|---|---|
author | Marc Treib <treib@chromium.org> | Mon Apr 07 15:59:17 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 07 15:59:17 2025 |
tree | 37f0cfb5c1f63a5c5d94053729bd86b2daf6c090 | |
parent | 4c6a839ef3db6b34af833dd48485b2557f7f387b [diff] |
[iOS] NTP: Fix "Sign in" briefly flashing while switching accounts When switching accounts (with chrome://flags/#identity-disc-account-menu and/or chrome://flags/#separate-profiles-for-managed-accounts enabled), there was a brief flash of the "Sign in" button between the old and the new avatar image. This was previously fixed by listening to onEndBatchOfPrimaryAccountChanges (which only gets called once both the sign-out and the sign-in are complete), see bug 397194715, but https://crrev.com/c/6355423 reintroduced the flashes by adding an extra setUserSignedIn notification which bypassed the IdentityManager-level batching. This CL fixes the issue by removing setUserSignedIn, which wasn't really necessary in the first place - the signin state could already be determined from existing calls. Fixed: 406922383 Change-Id: Id602f0103fbc1019a9b84735441daec1796870bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6433737 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by: Scott Yoder <scottyoder@google.com> Cr-Commit-Position: refs/heads/main@{#1443518}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.