[Android] Remove knowledge of Tab from ExternalNavigationParams
The only client of ExternalNavigationParams.getTab() is now ExternalNavigationDelegateImpl, and the only client that sets the Tab of the params is InterceptNavigationDelegateImpl. The latter sets the Tab of the params to its own ivar, which is the same object that it has passed to the ExternalNavigationDelegateImpl instance that it constructs via TabDelegateFactory.createExternalNavigationHandler(). Thus, ExternalNavigationDelegateImpl can simply use its own |mTab| ivar in place of ExternalNavigationParams.getTab(), as they refer to the same object. This CL also makes a minor change to the structure of ExternalNavigationDelegateImplTest.java to adjust for the production change. This change aids in the componentiation of ExternalNavigationHandler for sharing with WebLayer. Bug: 1031465 Change-Id: I0b79258555c63171ab61459187ad6303822a467e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2087671 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#747155}
Showing
Please register or sign in to comment