[Android] Move autofill assistant knowledge to external nav delegate
This CL moves knowledge of the //chrome-level AutofillAssistant out of ExternalNavigationHandler.java and into ExternalNavigationDelegateImpl.java via the ExternalNavigationDelegate interface. This change is a step toward componentization of ExternalNavigationHandler.java for sharing with WebLayer. Via this change, we also eliminate knowledge of //chrome's Tab object from ExternalNavigationHandler. The bulk of this change is in the tests, as ExternalNavigationHandlerTest had several tests of the functionality that this CL moves. We split those tests across the test of the handler and the test of the delegate impl: the tests in the handler now test that the handler behaves as expected when the intent is/is not handled by the the delegate in this case, while the delegate impl tests test that the behavior of the production method is as expected (i.e., these tests contain the bulk of the logic that was previously in the handler-level tests of the production code). Change-Id: If950a3fac701744af4610173e5c221bdb8a8a7c1 Bug: 1031465 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081418 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#746865}
Showing
Please register or sign in to comment