[iOS][Thumb Strip] Handle closing recent tabs correctly
When tapping Done on recent tabs, the tab grid shows a tab in the activePage, without changing the actual tab grid. However, when the tab grid is opened again, the tab grid still shows recent tabs. To fix this, this CL has the tab grid scroll without animation to the active page when the tab grid starts to appear. This also handles opening the tab grid after "Open in new incognito tab." The issue there was that before, the tab grid's active page was being set by the SceneController in -showTabSwitcher. However, when using the thumb strip, this method is not called. I swapped the data flow around where the tab grid now requests the page from the SceneController (via delegation) when it is about to open in the thumb strip. Fixed: 1155612 Change-Id: I791f7c0ca7fa7ada66241ab55411ac4daeb5c281 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595051 Commit-Queue: Robbie Gibson <rkgibson@google.com> Reviewed-by:edchin <edchin@chromium.org> Cr-Commit-Position: refs/heads/master@{#838664}
Showing
Please register or sign in to comment