cros: Fix crash on multiprofile switch
If the profile being left had a folder, we kept a reference to that folder in AppListModel's ScopedObserverList. But when profiles are swapped, we delete everything in the AppListModel::top_level_item_list_. This means the folder is deleted. Remove the item from the ScopedObserverList if it is a folder. Bug: 1130901 Change-Id: I1d6ab268739f81904debcc4654e5663ddf768013 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464151 Commit-Queue: Alex Newcomer <newcomer@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#816300}
Showing
Please register or sign in to comment