Move & Simplify algorithm for finding best matches in Password Manager.
NewPasswordFormManager (details go/new-cpm-design-refactoring) needs to find best matches. This CL implements new best matches finding algorithm, that will be used for now by both PasswordFormManager and NewPasswordFormManager. Scoring algorithm is greatly simplified. All that we need to compare matches is PSL/non-PSL match, preferred/non-preferred. Since now algorithm of finding best matches is in separate function, we can test it. So tests were written. Bug: 831123 Change-Id: I543aa185e489777007c0c19bcc5924f9964696b6 Reviewed-on: https://chromium-review.googlesource.com/1023936 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by:Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#553079}
Showing
Please register or sign in to comment