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

Issue 356223002: PasswordForm: move from current/old password scheme to current/new. (Closed)

Created:
6 years, 5 months ago by engedy
Modified:
6 years, 5 months ago
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, mkwst+watchlist_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Project:
chromium
Visibility:
Public.

Description

PasswordForm: move from current/old password scheme to current/new. With the old approach (storing the current and old passwords for a form), we could not tell apart login forms from sign-up forms and change password forms that did not have a password confirmation field. Furthermore, the new approach align more nicely with the new-password and current-password scheme we use for the autocomplete attributes. BUG=375333 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282310

Patch Set 1 : #

Total comments: 17

Patch Set 2 : Fix problems with discrepancies between |observed_form_| and |form|, and revert former to constref. #

Total comments: 2

Patch Set 3 : Fix merge errors, and rephrase a comments. #

Total comments: 10

Patch Set 4 : Address comments from vabr@. #

Patch Set 5 : Fix tests. #

Total comments: 8

Patch Set 6 : Added TestUpdatePasswordFromNewPasswordElement, updates existing tests. #

Patch Set 7 : Addressed final comment from gcasto@. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -77 lines) Patch
M components/autofill/content/common/autofill_param_traits_macros.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 1 2 3 4 5 5 chunks +27 lines, -21 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M components/autofill/core/common/password_form.h View 1 2 3 2 chunks +12 lines, -8 lines 0 comments Download
M components/autofill/core/common/password_form.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 5 6 7 7 chunks +40 lines, -17 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 7 6 chunks +137 lines, -11 lines 0 comments Download
M components/password_manager/core/browser/password_store_change.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
engedy
@Garrett, @Ilya: please take a look.
6 years, 5 months ago (2014-06-27 15:13:55 UTC) #1
Ilya Sherman
Garret is more familiar with this code, so I'll let him do a first pass, ...
6 years, 5 months ago (2014-06-27 19:55:04 UTC) #2
Ilya Sherman
Sorry, s/Garret/Garrett/
6 years, 5 months ago (2014-06-27 19:55:21 UTC) #3
engedy
@Vaclav, as Garrett is OOO, could you please take a look?
6 years, 5 months ago (2014-06-30 09:31:16 UTC) #4
vabr (Chromium)
LGTM with comments. Also happy to talk about offline if there are questions. Cheers, Vaclav ...
6 years, 5 months ago (2014-06-30 10:07:20 UTC) #5
Ilya Sherman
LGTM2 https://codereview.chromium.org/356223002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/356223002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode28 components/autofill/content/renderer/password_form_conversion_utils.cc:28: // Helper to determine which password is the ...
6 years, 5 months ago (2014-07-01 03:08:47 UTC) #6
engedy
@Ilya: I have identified a problem with the old solution, please re-review. @Vaclav: This is ...
6 years, 5 months ago (2014-07-03 13:34:20 UTC) #7
vabr (Chromium)
Thanks, Balázs! LGTM. I'm unable to find more problems in the logic than you identified ...
6 years, 5 months ago (2014-07-03 14:42:57 UTC) #8
engedy
https://codereview.chromium.org/356223002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/356223002/diff/20001/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode40 components/autofill/content/renderer/password_form_conversion_utils.cc:40: // Two identical passwords: assume we are seeing a ...
6 years, 5 months ago (2014-07-03 18:47:37 UTC) #9
vabr (Chromium)
Thanks a lot, still LGTM. Vaclav
6 years, 5 months ago (2014-07-04 15:49:15 UTC) #10
Garrett Casto
Not sure if you're waiting on me, but LGTM with a couple of minor comments. ...
6 years, 5 months ago (2014-07-07 21:57:24 UTC) #11
engedy
Yes, I wanted to wait until you have a chance to take a look, mostly ...
6 years, 5 months ago (2014-07-07 22:07:56 UTC) #12
Ilya Sherman
(Still LGTM) https://codereview.chromium.org/356223002/diff/110001/components/autofill/content/renderer/password_form_conversion_utils.cc File components/autofill/content/renderer/password_form_conversion_utils.cc (right): https://codereview.chromium.org/356223002/diff/110001/components/autofill/content/renderer/password_form_conversion_utils.cc#newcode61 components/autofill/content/renderer/password_form_conversion_utils.cc:61: (passwords[0].value() == passwords[1].value() && Optional nit: No ...
6 years, 5 months ago (2014-07-08 00:48:33 UTC) #13
engedy
I have added a missing unit test that I think has some value. @Garrett, could ...
6 years, 5 months ago (2014-07-09 14:15:47 UTC) #14
Garrett Casto
lgtm https://codereview.chromium.org/356223002/diff/110001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/356223002/diff/110001/components/password_manager/core/browser/password_form_manager.cc#newcode476 components/password_manager/core/browser/password_form_manager.cc:476: // Ignore change passwords until we have some ...
6 years, 5 months ago (2014-07-09 22:24:19 UTC) #15
engedy
https://codereview.chromium.org/356223002/diff/110001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/356223002/diff/110001/components/password_manager/core/browser/password_form_manager.cc#newcode476 components/password_manager/core/browser/password_form_manager.cc:476: // Ignore change passwords until we have some change ...
6 years, 5 months ago (2014-07-10 09:23:03 UTC) #16
engedy
The CQ bit was checked by engedy@chromium.org
6 years, 5 months ago (2014-07-10 09:23:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/engedy@chromium.org/356223002/190001
6 years, 5 months ago (2014-07-10 09:24:08 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 11:17:28 UTC) #19
Message was sent while issue was closed.
Change committed as 282310

Powered by Google App Engine
This is Rietveld 408576698