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

Issue 548953002: [Password Manager] Modified to support saving passwords on forms without username fields. (Closed)

Created:
6 years, 3 months ago by Pritam Nikam
Modified:
6 years, 2 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Modified to support saving passwords on forms without user-name fields. With current implementation forms lacking user-name fields are treated as invalid password forms and browser does not save passwords in such cases. With this patch password manager saves passwords on forms without user-name fields as well. BUG=406343 TBR=gcasto@chromium.org,vabr@chromium.org Committed: https://crrev.com/77d3ffc71361592df3fdf9a5377045f088bcaeac Cr-Commit-Position: refs/heads/master@{#296943}

Patch Set 1 #

Patch Set 2 : Added unit-tests and fixed lint errors. #

Total comments: 24

Patch Set 3 : Incorporated review comments. #

Patch Set 4 : Added a dummy username field to autofill password only form. #

Patch Set 5 : Incorporated review comments. #

Total comments: 30

Patch Set 6 : #

Total comments: 7

Patch Set 7 : Incorporated review changes and code refactoring. #

Total comments: 4

Patch Set 8 : Reverted refactoring changes. #

Total comments: 2

Patch Set 9 : Incorporated input comments. #

Total comments: 4

Patch Set 10 : Fixed breakages. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -23 lines) Patch
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/test/data/password/form_with_only_password_field.html View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 6 7 8 9 9 chunks +44 lines, -16 lines 1 comment Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 2 chunks +52 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (6 generated)
Pritam Nikam
On 2014/09/09 07:04:20, Pritam Nikam wrote: > mailto:pritam.nikam@samsung.com changed reviewers: > + mailto:vabr@chromium.org Hi Vaclav! ...
6 years, 3 months ago (2014-09-09 07:26:10 UTC) #2
Pritam Nikam
* Simplistic implementation (without UX)
6 years, 3 months ago (2014-09-12 05:38:36 UTC) #3
vabr (Chromium)
Hi Pritam Nikam, Thanks for your work on this, and sorry for the delay (I ...
6 years, 3 months ago (2014-09-15 13:01:46 UTC) #4
Pritam Nikam
Thanks Vaclav for review. I've incorporated all review comments with patch set #3. PTAL! Moreover, ...
6 years, 3 months ago (2014-09-15 15:02:09 UTC) #5
vabr (Chromium)
Hi Pritam Nikam, Thanks for the debugging update. Teaching PasswordAutofillAgent and related code, that a ...
6 years, 3 months ago (2014-09-18 09:51:25 UTC) #6
Pritam Nikam
Hi Vaclav! Thanks for your inputs. I've submitted a patch (#4) with your suggestions by ...
6 years, 3 months ago (2014-09-23 13:18:08 UTC) #7
vabr (Chromium)
On 2014/09/23 13:18:08, Pritam Nikam wrote: > Hi Vaclav! > > Thanks for your inputs. ...
6 years, 3 months ago (2014-09-23 13:23:00 UTC) #8
Pritam Nikam
On 2014/09/23 13:23:00, vabr (Chromium) wrote: > On 2014/09/23 13:18:08, Pritam Nikam wrote: > > ...
6 years, 3 months ago (2014-09-23 13:25:07 UTC) #9
vabr (Chromium)
On 2014/09/23 13:25:07, Pritam Nikam wrote: > On 2014/09/23 13:23:00, vabr (Chromium) wrote: > > ...
6 years, 3 months ago (2014-09-23 13:29:40 UTC) #10
Pritam Nikam
Hi Vaclav, I've added a patch for review by adding handling for cases where password ...
6 years, 3 months ago (2014-09-24 07:39:34 UTC) #11
vabr (Chromium)
Thanks, Pritam Nikam. I added a couple of comments. These are mostly nits, but let's ...
6 years, 3 months ago (2014-09-24 09:47:44 UTC) #12
Pritam Nikam
Hi Vaclav, I've added a new patch for review incorporating your review inputs. PTAL Thanks! ...
6 years, 3 months ago (2014-09-24 12:57:56 UTC) #14
vabr (Chromium)
Garrett, Could you please review components/autofill/content/renderer/password_autofill_agent.cc, which I'm not OWNER of? Feel free to just ...
6 years, 3 months ago (2014-09-24 16:17:21 UTC) #16
Pritam Nikam
Hi Vaclav, Thanks again! for your review inputs. I've addresses all your inputs and did ...
6 years, 3 months ago (2014-09-25 07:22:28 UTC) #17
vabr (Chromium)
Hi Pritam Nikam, Please consider removing the refactoring you did in patch set 7, where ...
6 years, 3 months ago (2014-09-25 10:39:59 UTC) #18
Pritam Nikam
Hi Vaclav, Reverted refactoring related changes made in #7. Patch set#8 up for review. PTAL. ...
6 years, 2 months ago (2014-09-25 11:22:46 UTC) #19
vabr (Chromium)
LGTM, with one comment. Thanks! Vaclav https://codereview.chromium.org/548953002/diff/160001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/548953002/diff/160001/components/autofill/content/renderer/password_autofill_agent.cc#newcode72 components/autofill/content/renderer/password_autofill_agent.cc:72: size_t j = ...
6 years, 2 months ago (2014-09-25 12:39:48 UTC) #20
Pritam Nikam
Thanks Vaclav for review. Added changes addressing your inputs. PTAL. Thanks! https://codereview.chromium.org/548953002/diff/160001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): ...
6 years, 2 months ago (2014-09-25 13:38:18 UTC) #21
vabr (Chromium)
Thank you, Pritam Nikam, LGTM! Before landing, you still need an OWNERS rubber stamp from ...
6 years, 2 months ago (2014-09-25 15:08:20 UTC) #22
Garrett Casto
LGTM https://codereview.chromium.org/548953002/diff/180001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/548953002/diff/180001/components/autofill/content/renderer/password_autofill_agent.cc#newcode953 components/autofill/content/renderer/password_autofill_agent.cc:953: form_contains_username_field && !username_element.form().autoComplete()) nit: Line break after "&&"
6 years, 2 months ago (2014-09-25 20:34:39 UTC) #23
Pritam Nikam
Thanks Vaclav & Garrett for review. For last review comment, "git cl format" does not ...
6 years, 2 months ago (2014-09-26 04:07:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/548953002/180001
6 years, 2 months ago (2014-09-26 04:08:42 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/13708)
6 years, 2 months ago (2014-09-26 04:16:36 UTC) #28
vabr (Chromium)
Pritam Nikam, Currently, the presubmit script fails to recognise that you have the requested OWNERS ...
6 years, 2 months ago (2014-09-26 12:32:39 UTC) #29
Pritam Nikam
On 2014/09/26 12:32:39, vabr (Chromium) wrote: > Pritam Nikam, > Currently, the presubmit script fails ...
6 years, 2 months ago (2014-09-26 13:10:06 UTC) #30
vabr (Chromium)
On 2014/09/26 13:10:06, Pritam Nikam wrote: > On 2014/09/26 12:32:39, vabr (Chromium) wrote: > > ...
6 years, 2 months ago (2014-09-26 14:09:29 UTC) #31
Pritam Nikam
On 2014/09/26 14:09:29, vabr (Chromium) wrote: > On 2014/09/26 13:10:06, Pritam Nikam wrote: > > ...
6 years, 2 months ago (2014-09-26 14:13:07 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/548953002/200001
6 years, 2 months ago (2014-09-26 14:13:31 UTC) #34
commit-bot: I haz the power
Committed patchset #10 (id:200001) as 0e0e39a99ff7ede1830027369ff5df757947d99e
6 years, 2 months ago (2014-09-26 15:23:20 UTC) #35
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/77d3ffc71361592df3fdf9a5377045f088bcaeac Cr-Commit-Position: refs/heads/master@{#296943}
6 years, 2 months ago (2014-09-26 15:24:47 UTC) #36
Garrett Casto
6 years, 2 months ago (2014-09-26 17:41:22 UTC) #37
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/548953002/diff/180001/components/autofill/con...
File components/autofill/content/renderer/password_autofill_agent.cc (right):

https://codereview.chromium.org/548953002/diff/180001/components/autofill/con...
components/autofill/content/renderer/password_autofill_agent.cc:953:
form_contains_username_field && !username_element.form().autoComplete())
On 2014/09/26 12:32:39, vabr (Chromium) wrote:
> On 2014/09/26 04:07:14, Pritam Nikam wrote:
> > On 2014/09/25 20:34:38, Garrett Casto wrote:
> > > nit: Line break after "&&"
> > 
> > "git cl format" restores it in-line. Does not respect line-break here.
> 
> Garrett, you are the OWNER here, but I suggest going with clang-format
wherever
> reasonable, to make future refactoring easier, and using the deactivation
> comments
> // clang-format off
> special_formatting();
> // clang-format on
> (see b/14285621) where the clang-format's result actually hurts.
> 
> How does that sound to you?

Keeping this as is is fine. I haven't been using clang formatting yet, but
moving towards automated formatting is a good thing. I find this particular
styling harder to read, but whatever. I'll get used to it.

Powered by Google App Engine
This is Rietveld 408576698