Revert "Fix the issue that ARC app can't start from shelf after switch users."
This reverts commit 2359557a. Reason for revert: heap-buffer-overflow found by ASAN bot, likely due to accessing std::map<>::end() returned by std::map<>::find(). Original change's description: > 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} TBR=xiyuan@chromium.org,nancylingwang@chromium.org Change-Id: I3c8ee654bd33b2a5235815c01ad6ed1957309c0c No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1011235 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1979539Reviewed-by:Samuel Huang <huangs@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#727034}
Showing
Please register or sign in to comment