-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X-Device Restore] Fix profile native initialization crash
Fix for the profile native initialization crash occurring in the RootUiCoordinator. It seems the root cause for this is that the profile is being cached when the incognito tab switcher is entered first. After exiting and switching back to incognito, the off-the-record profile gets destroyed but this code attempts to reference it. This change now uses only the most up to date information rather than caching, as well as null/off-the-record checking the profile and not showing the promo in the rare case that happens. (cherry picked from commit 1157f70) Bug: 1457516 Change-Id: I7f3d802b7bed0830d0c394c6c8e056348436d9d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4647214 Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Brandon Fong <bjfong@google.com> Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org> Reviewed-by: Theresa Sullivan <twellington@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1163689} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4654214 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Owners-Override: Erhu Akpobaro <eakpobaro@google.com> Reviewed-by: Erhu Akpobaro <eakpobaro@google.com> Reviewed-by: Brandon Fong <bjfong@google.com> Commit-Queue: Erhu Akpobaro <eakpobaro@google.com> Cr-Commit-Position: refs/branch-heads/5845@{#189} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Brandon Fong
authored and
Chromium LUCI CQ
committed
Jun 28, 2023
1 parent
e28ed98
commit e5403ee
Showing
5 changed files
with
30 additions
and
28 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