Possible fixing for the crash in ChromeAppListModelUpdater
Learnt from other engineers that map::count at some time gives unexpected results. So replace map::count with map::find in ChromeAppListModelUpdater::FindItem. In addition, it is suspected that ActivateChromeItem may affect |current_model_updater_| in a surprising way. So move ActivateChromeItem to the end of function. Meanwhile, add more checks to help the bug investigation. Bug: 969810 Change-Id: Ic5c7b21efb4746d9761742482d9a697ebe322c44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1714214Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Andrew Xu <andrewxu@chromium.org> Cr-Commit-Position: refs/heads/master@{#680088}
Showing
Please register or sign in to comment