[ios] Fix crash in tab switcher
Crash is caused by the previousPanelIndex being out-of-bounds into the panels array. This CL ensures that previousPanelIndex is kept up-to-date when any panels are removed so that it is not out-of-bounds. Bug: 805530 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Id193a85585510c50e9bb92680f0782fee7e34d1a Reviewed-on: https://chromium-review.googlesource.com/916943Reviewed-by:edchin <edchin@chromium.org> Reviewed-by:
Jérôme Lebel <jlebel@chromium.org> Commit-Queue: edchin <edchin@chromium.org> Cr-Commit-Position: refs/heads/master@{#536745}
Showing
Please register or sign in to comment