[ios] Make history work from recent tabs in tab grid
A history coordinator that is started from main_controller won't work properly from the tab grid. Using a local coordinator works better when hooked up with a specialized URL loader and tab presentation delegate. This CL introduces a specialized URL loader that behaves differently from the one in BVC. Essentially, BVC's loader navigates the current WebState to the new URL. In tab grid, we need to append a new WebState to the end of the list, because there is no context of a current visible BVC. Also in this CL is a change to how tab presentation is handled. In the stand-alone recent tabs, the BVC is already presented so there is no need to actively present it. However, in tab grid, there is no visible BVC. To show the tab that was tapped in recent tabs, we needed a mechanism that could present BVC when in the tab grid, but NO-OP in the stand-alone case. Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: Id3b8a88e548de14356f997a8154fed9d613b18d0 Reviewed-on: https://chromium-review.googlesource.com/1092510 Commit-Queue: edchin <edchin@chromium.org> Reviewed-by:edchin <edchin@chromium.org> Reviewed-by:
Mark Cogan <marq@chromium.org> Cr-Commit-Position: refs/heads/master@{#565697}
Showing
Please register or sign in to comment