Fix the issue that ARC app can't start from shelf after switch users.
The reason is that OnItemDelegateDiscarded is called, and the controller is deleted from app_shelf_group_to_controller_map_, even though the parameter delegate is not the controller saved in app_shelf_group_to_controller_map_. So adding a checking in OnItemDelegateDiscarded, only when the parameter delegate is the controller saved in app_shelf_group_to_controller_map_, delete it, otherwise, don't delete the controller in app_shelf_group_to_controller_map_. BUG=1011235 Change-Id: I300b5fc4a46b9441a063c34bac745a5018aa5b82 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1976140 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#726710}
Showing
Please register or sign in to comment