Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
saved_desks: Fix crash in DeskMiniView when saving desk
DeskMiniView's constructor installs a focus predicate that may be called after the desk that the mini view refers to has been destroyed. The predicate was assuming that `desk_` is not null, but this doesn't always hold. The mini view already tracks the deletion of its desk and sets `desk_` to null when this happens, so we can simply check in the predicate. BUG=b:263159388 Change-Id: I21f3db7bb4c2902c469a5ad776167c82fe8d9a4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4116053 Commit-Queue: Daniel Andersson <dandersson@chromium.org> Reviewed-by: Yongshun Liu <yongshun@chromium.org> Cr-Commit-Position: refs/heads/main@{#1085187}
- Loading branch information