[Autofill Assistant] Extract FindElement into a helper, give
WebController ownership of its helpers. This change adds a helper to WebController for FindElement, similar to ElementPositionGetter. It also generalizes ownership of these two kinds of helpers, by keeping them in a map, so owned directly by the WebController instance. This change: - prepares the way for upcoming changes for WebController::FindElement. - simplifies ownership of ElementPositionGetter in WebController - possibly fix bugs in delete order, that we currently work around by waiting for actions to finish before deleting the controller - is a pure refactoring without behavior change Bug: b/129254215,b/129113367,b/128300038 Change-Id: Ib328cde766ffc669953b437e27898bb5cd543111 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1538091 Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Reviewed-by:Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#645248}
Showing
This diff is collapsed.
Please register or sign in to comment