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

Issue 2747733004: [Password Manager] Send username correction votes (Closed)

Created:
3 years, 9 months ago by kolos1
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, browser-components-watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, jam, mathp+autofillwatch_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, rogerm+autofillwatch_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Send username correction votes If a user changes autofilled username on a form, but the correct username is in |PasswordForm.other_possible_usernames|, send USERNAME vote for the element that contained the correct username. This CL changes the data structure of |other_possible_usernames| from vector<string> to vector<pair<string, string>>. The CL updates only one local storage - login_database. We need to receive enough votes, there is no need to cover 100% of Chrome instances. But the results based on the votes would propagated to all instances. BUG=699530 Review-Url: https://codereview.chromium.org/2747733004 Cr-Commit-Position: refs/heads/master@{#458788} Committed: https://chromium.googlesource.com/chromium/src/+/718d242b21b1964f8a06e79bf00dcce7e073dac7

Patch Set 1 : o #

Patch Set 2 : o #

Patch Set 3 : o #

Patch Set 4 : #

Patch Set 5 : o #

Patch Set 6 : o #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : Sent for review. #

Total comments: 7

Patch Set 16 : Some minor changes #

Patch Set 17 : Minor changes #

Total comments: 21

Patch Set 18 : Changes addressed to reviewer comments #

Total comments: 18

Patch Set 19 : Changes addressed to reveiwer comments #

Patch Set 20 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -173 lines) Patch
M components/autofill/content/common/autofill_types.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +7 lines, -1 line 0 comments Download
M components/autofill/content/common/autofill_types.typemap View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +17 lines, -2 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -0 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +26 lines, -15 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +45 lines, -19 lines 0 comments Download
M components/autofill/core/common/password_form.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +11 lines, -1 line 0 comments Download
M components/autofill/core/common/password_form.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +14 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/login_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +61 lines, -44 lines 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +19 lines, -12 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +25 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 14 chunks +102 lines, -46 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 11 chunks +68 lines, -25 lines 0 comments Download
A components/test/data/password_manager/login_db_v19.sql View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +110 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
kolos1
vabr@: Please review all files except autofill_types* dvadym@: Please take a brief look. I added ...
3 years, 9 months ago (2017-03-16 14:10:00 UTC) #5
vabr (Chromium)
Thanks, Maxim. It is exciting to see we will have this way of figuring out ...
3 years, 9 months ago (2017-03-16 21:00:42 UTC) #6
kolos1
https://codereview.chromium.org/2747733004/diff/360001/components/autofill/core/common/password_form.cc File components/autofill/core/common/password_form.cc (right): https://codereview.chromium.org/2747733004/diff/360001/components/autofill/core/common/password_form.cc#newcode19 components/autofill/core/common/password_form.cc:19: base::string16 OtherPossibleUsernamesToString( On 2017/03/16 21:00:42, vabr (Chromium) wrote: > ...
3 years, 9 months ago (2017-03-17 14:09:34 UTC) #8
kolos1
mkwst@: please review changes in autofill_types* Thanks. Regards, Maxim
3 years, 9 months ago (2017-03-17 14:12:38 UTC) #10
Mike West
Converting the string to a pair LGTM.
3 years, 9 months ago (2017-03-17 14:16:08 UTC) #11
vabr (Chromium)
Still LGTM, thanks for addressing the comments.
3 years, 9 months ago (2017-03-17 15:30:07 UTC) #12
kolos1
dvadym@: Friendly ping. Please let me know if you have any concerns. Sending username correction ...
3 years, 9 months ago (2017-03-21 20:42:01 UTC) #17
dvadym
In general it looks good. I have some comments. https://codereview.chromium.org/2747733004/diff/320001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (left): https://codereview.chromium.org/2747733004/diff/320001/components/password_manager/core/browser/password_form_manager.cc#oldcode779 components/password_manager/core/browser/password_form_manager.cc:779: ...
3 years, 9 months ago (2017-03-22 10:56:19 UTC) #18
dvadym
https://codereview.chromium.org/2747733004/diff/320001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/2747733004/diff/320001/components/password_manager/core/browser/password_form_manager.cc#newcode1287 components/password_manager/core/browser/password_form_manager.cc:1287: FormStructure(observed_form_.form_data).FormSignatureAsStr()); On 2017/03/16 14:10:00, kolos1 wrote: > dvadym@: send ...
3 years, 9 months ago (2017-03-22 10:57:38 UTC) #19
kolos1
https://codereview.chromium.org/2747733004/diff/320001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/2747733004/diff/320001/components/password_manager/core/browser/password_form_manager.cc#newcode833 components/password_manager/core/browser/password_form_manager.cc:833: field_types[form_to_upload.username_element] = autofill::USERNAME; On 2017/03/22 10:56:18, dvadym wrote: > ...
3 years, 9 months ago (2017-03-22 13:40:39 UTC) #20
dvadym
LGTM Thanks for implementing sending USERNAME votes!
3 years, 9 months ago (2017-03-22 14:14:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2747733004/440001
3 years, 9 months ago (2017-03-22 16:10:48 UTC) #31
commit-bot: I haz the power
Committed patchset #20 (id:440001) as https://chromium.googlesource.com/chromium/src/+/718d242b21b1964f8a06e79bf00dcce7e073dac7
3 years, 9 months ago (2017-03-22 17:17:45 UTC) #34
adithyas
3 years, 4 months ago (2017-07-31 21:15:51 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #20 id:440001) has been created in
https://codereview.chromium.org/2985373002/ by adithyas@chromium.org.

The reason for reverting is: Suspect that this is causing browser_tests and
interactive_ui_tests failures.

Powered by Google App Engine
This is Rietveld 408576698