-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TTF] Move password generation call under AutofillAgent::ShowSuggestions
Currently the password generation is triggered in PasswordGenerationAgent::HandleFocusChangeComplete(), which is triggered in AutofillAgent::HandleFocusChangeComplete(). The password suggestions are triggered in PasswordAutofillAgent::ShowSuggestions, which is triggered in AutofillAgent::ShowSuggestions. Moving the call PasswordGenerationAgent::HandleFocusChangeComplete() also under AutofillAgent::ShowSuggestions would make the flow of the code more straightforward, because all the possible autofilling option calls would be placed in one method in the order from most specific to the least specific: - Try to call password generation. Return early if it worked. - Try to call password suggestions. Return early if it worked. - Call other autofill suggestions. Password generation will not be triggered by JS any more (as now it's triggered from the method, which is called only when there is a user gesture). Bug: 1469829 Change-Id: Ifed8b35a8eee10d2baf3dfd1f2c6288f690116cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4761404 Reviewed-by: Florian Leimgruber <fleimgruber@google.com> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org> Commit-Queue: Anna Tsvirchkova <atsvirchkova@google.com> Cr-Commit-Position: refs/heads/main@{#1185109}
- Loading branch information
Anna Tsvirchkova
authored and
Chromium LUCI CQ
committed
Aug 18, 2023
1 parent
aaf082e
commit 596072c
Showing
10 changed files
with
182 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.