-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[profiles] Fix incorrect last_name_to_display_ on startup
last_name_to_display_ is initialized on startup in ProfileAttributesEntry::Initialize() when the profile info cache is read from the local state on disk. ProfileInfoCache initializes each profile entry one by one. However, profile's visible name depends on other profiles names because a disambiguation might be required. last_name_to_display_ has to be updated once all profiles are loaded to cache. This CL achieves that by calling ProfileAttributesEntry::HasProfileNameChanged() on each profile entry after all of them were loaded. (cherry picked from commit 95d596d) Bug: 1195784 Change-Id: I60bbff69e1cd6776ab8d6c465a00716a40f77ed0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2814923 Reviewed-by: Monica Basta <msalama@chromium.org> Commit-Queue: Alex Ilin <alexilin@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#871427} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2824148 Auto-Submit: Alex Ilin <alexilin@chromium.org> Commit-Queue: Monica Basta <msalama@chromium.org> Cr-Commit-Position: refs/branch-heads/4472@{#55} Cr-Branched-From: 3d60439-refs/heads/master@{#870763}
- Loading branch information
Alex Ilin
authored and
Chromium LUCI CQ
committed
Apr 14, 2021
1 parent
c6bf910
commit 5b113ba
Showing
5 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters