[Android] Abstract most of InterceptNavigationDelegateImpl's Tab deps
This CL abstracts the bulk of InterceptNavigationDelegateImpl's remaining deps on Tab through InterceptNavigationDelegateClient to support reuse of InterceptNavigationDelegateImpl by WebLayer. The one remaining dep is the observance of Tab via EmptyTabObserver, which is complex enough to warrant its own CL. As part of this CL, we change InterceptNavigationDelegateImpl from obtaining the //chrome-level AuthenticatorNavigationInterceptor via AppHooks#createAuthenticatorNavigationInterceptor() to obtaining the //components-level AuthenticatorNavigationInterceptor via AppHooks#createAuthenticatorNavigationInterceptorV2(). The two methods return the same object in their downstream implementations (an impl that implements both identical interfaces), so this change has no behavioral impact; it is necessary as the //components-level Client interface can refer only to the //components-level AuthenticatorNavigationInterceptor interface. Bug: 1031465 Change-Id: I7e69fadf4fc563e9d2839311d5aabe9856517532 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2134233 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#758483}
Showing
Please register or sign in to comment