Fix the ~AppWindowLauncherItemController crash issue.
In ~AppWindowLauncherItemController, AppWindowBase::SetController could remove the window from windows_, so the for loop for windows_ might cause crash. Modify the for loop to use the reverse iterator to resolve the crash issue. BUG=1164188 Change-Id: Ifa561df71d3be1daf0c3505e8836d1cb60fa9143 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2633483Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#844880}
Showing
Please register or sign in to comment