Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Issue 1620083003: Fix best credentials selection algorithm in Password Manager. (Closed)

Created:
4 years, 11 months ago by dvadym
Modified:
4 years, 11 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix best credentials selection algorithm in Password Manager. Currently we select best matches as credentials with highest store, independently of usernames. And so if there are credentials for different usernames stored on different forms (for example on Sign-In and Sign-Up forms) we propose to autofill only one credentials, since they have different score. This patch changed our selection algorithm by choosing the best credentials by each username separately. Since these changes in logic, we might have mixed PSL-non PSL matches in |best_matches_| so both PSL and non PSL matches might be shown in a suggestion dropdown, but it was implemented not to show PSL matched credentials in manage bubble. BUG=579485 Committed: https://crrev.com/f2bd438bf1d535308aa9041ec9cfe712303a999b Cr-Commit-Position: refs/heads/master@{#371508}

Patch Set 1 #

Patch Set 2 : Not showing PSL matched credentials in managed bubble #

Patch Set 3 : tiny fix #

Patch Set 4 : Test fixes #

Patch Set 5 : Tests added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -88 lines) Patch
M chrome/browser/ui/passwords/manage_passwords_state.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_state_unittest.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_password_items_view.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 3 chunks +19 lines, -73 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 2 chunks +35 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
dvadym
Hi Vaclav, Could you please review this CL? Best regards, Vadym
4 years, 11 months ago (2016-01-26 13:15:45 UTC) #4
vabr (Chromium)
LGTM! Cheers, Vaclav
4 years, 11 months ago (2016-01-26 13:45:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1620083003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1620083003/80001
4 years, 11 months ago (2016-01-26 14:40:58 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-26 14:45:37 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 14:46:26 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f2bd438bf1d535308aa9041ec9cfe712303a999b
Cr-Commit-Position: refs/heads/master@{#371508}

Powered by Google App Engine
This is Rietveld 408576698