cros: Fix chrome crash when open app in folders in app launcher
The crash occurs in AppsGridView::GetHeightOnTopOfAllAppsTiles. After clicking the app icon, app list is dismissed. |folder_delegate_| becomes nullptr, AppsGridView::GetHeightOnTopOfAllAppsTiles use |suggestions_container_| without checking whether it is nullptr. Changes: Check nullptr for all usage of |suggestions_container_|, |expand_arrow_view_| and |all_apps_indicator_| which are possibily nullptr. BUG=768287 Change-Id: I73832fdf0da95d431fb0c628bf0c8ba45c3b3a0a Reviewed-on: https://chromium-review.googlesource.com/683227Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Weidong Guo <weidongg@chromium.org> Cr-Commit-Position: refs/heads/master@{#504207}
Showing
Please register or sign in to comment