-
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.
[Android] Fix crash when signing out from CBD
The crash was caused by a scenario where ClearBrowsingDataFragment is hosted in SettingsActivity indirectly via ClearBrowsingDataTabsFragment (disable QuickDeleteAndroidFollowup to trigger this behavior). When ClearBrowsingDataFragment is instantiated indirectly - the code in SettingsActivity to inject SnackbarManager doesn't trigger, so mSnackbarManager in ClearBrowsingDataFragment was null, causing a crash. This CL changes how ClearBrowsingDataFragment obtains SnackbarManager (this code no longer depends on how ClearBrowsingDataFragment is instantiated) and thus fixes the crash. Bug: 344531913 Change-Id: I9dfb058528d877e206378083f36fd87e0782ecbb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5625862 Reviewed-by: Samar Chehade-Lepleux <samarchehade@google.com> Commit-Queue: Samar Chehade-Lepleux <samarchehade@google.com> Auto-Submit: Boris Sazonov <bsazonov@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1314509}
- Loading branch information
Boris Sazonov
authored and
Chromium LUCI CQ
committed
Jun 13, 2024
1 parent
fc26a88
commit b9ea978
Showing
3 changed files
with
2 additions
and
11 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