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

Issue 1272613002: Remove credentials with empty username (Closed)

Created:
5 years, 4 months ago by dvadym
Modified:
5 years, 4 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlist_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

If we have credentials with the empty username and the user uses them for sign-in with non-empty username then delete no-username credentials. These no-username credentials most probably were stored on change password or reset forms, and we don't need them anymore. BUG=359315 Committed: https://crrev.com/a733022db8b61afa96ab2579bbc4c4fb81506d48 Cr-Commit-Position: refs/heads/master@{#342360}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed reviewer's comments #

Patch Set 3 : Tests are implemented #

Total comments: 16

Patch Set 4 : Tests imrovement #

Total comments: 6

Patch Set 5 : Rebase #

Patch Set 6 : Addressed comments #

Patch Set 7 : Implemented checker #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -2 lines) Patch
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 2 chunks +19 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +175 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
dvadym
Hi Vaclav, Could you please review these changes? Probably you will have some comments about ...
5 years, 4 months ago (2015-08-05 11:51:31 UTC) #2
vabr (Chromium)
Thanks, Vadym. This looks good, looking forward to the tests. Cheers, Vaclav https://codereview.chromium.org/1272613002/diff/1/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc ...
5 years, 4 months ago (2015-08-05 12:48:36 UTC) #3
dvadym
Thanks Vaclav! I've addressed your comments in PatchSet 2. https://codereview.chromium.org/1272613002/diff/1/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/1272613002/diff/1/components/password_manager/core/browser/password_form_manager.cc#newcode976 components/password_manager/core/browser/password_form_manager.cc:976: ...
5 years, 4 months ago (2015-08-05 13:10:13 UTC) #4
vabr (Chromium)
Thanks, looks good so far. Now the tests. :) Cheers, Vaclav
5 years, 4 months ago (2015-08-05 13:22:47 UTC) #5
dvadym
Hi Vaclav, I've uploaded tests for these changes, PTAL.
5 years, 4 months ago (2015-08-06 12:52:45 UTC) #6
vabr (Chromium)
Thanks, Vadym. LGTM, with some comments. Cheers, Vaclav https://codereview.chromium.org/1272613002/diff/40001/components/password_manager/core/browser/password_form_manager_unittest.cc File components/password_manager/core/browser/password_form_manager_unittest.cc (right): https://codereview.chromium.org/1272613002/diff/40001/components/password_manager/core/browser/password_form_manager_unittest.cc#newcode1684 components/password_manager/core/browser/password_form_manager_unittest.cc:1684: scoped_refptr<TestPasswordStore> ...
5 years, 4 months ago (2015-08-06 13:15:54 UTC) #7
dvadym
Thanks Vaclav! I've addressed your comments about tests. https://codereview.chromium.org/1272613002/diff/40001/components/password_manager/core/browser/password_form_manager_unittest.cc File components/password_manager/core/browser/password_form_manager_unittest.cc (right): https://codereview.chromium.org/1272613002/diff/40001/components/password_manager/core/browser/password_form_manager_unittest.cc#newcode1684 components/password_manager/core/browser/password_form_manager_unittest.cc:1684: scoped_refptr<TestPasswordStore> ...
5 years, 4 months ago (2015-08-07 12:44:04 UTC) #8
vabr (Chromium)
Thank you! LGTM with some nits. Vaclav https://codereview.chromium.org/1272613002/diff/40001/components/password_manager/core/browser/password_form_manager_unittest.cc File components/password_manager/core/browser/password_form_manager_unittest.cc (right): https://codereview.chromium.org/1272613002/diff/40001/components/password_manager/core/browser/password_form_manager_unittest.cc#newcode1684 components/password_manager/core/browser/password_form_manager_unittest.cc:1684: scoped_refptr<TestPasswordStore> password_store ...
5 years, 4 months ago (2015-08-07 13:02:48 UTC) #9
dvadym
https://codereview.chromium.org/1272613002/diff/60001/components/password_manager/core/browser/password_form_manager_unittest.cc File components/password_manager/core/browser/password_form_manager_unittest.cc (right): https://codereview.chromium.org/1272613002/diff/60001/components/password_manager/core/browser/password_form_manager_unittest.cc#newcode1703 components/password_manager/core/browser/password_form_manager_unittest.cc:1703: EXPECT_CALL(*mock_store(), AddLogin(_)).Times(1); On 2015/08/07 13:02:48, vabr (Chromium) wrote: > ...
5 years, 4 months ago (2015-08-07 13:51:59 UTC) #10
vabr (Chromium)
Still LGTM. Vaclav https://codereview.chromium.org/1272613002/diff/60001/components/password_manager/core/browser/password_form_manager_unittest.cc File components/password_manager/core/browser/password_form_manager_unittest.cc (right): https://codereview.chromium.org/1272613002/diff/60001/components/password_manager/core/browser/password_form_manager_unittest.cc#newcode1703 components/password_manager/core/browser/password_form_manager_unittest.cc:1703: EXPECT_CALL(*mock_store(), AddLogin(_)).Times(1); On 2015/08/07 13:51:59, dvadym ...
5 years, 4 months ago (2015-08-07 14:00:40 UTC) #11
dvadym
https://codereview.chromium.org/1272613002/diff/60001/components/password_manager/core/browser/password_form_manager_unittest.cc File components/password_manager/core/browser/password_form_manager_unittest.cc (right): https://codereview.chromium.org/1272613002/diff/60001/components/password_manager/core/browser/password_form_manager_unittest.cc#newcode1703 components/password_manager/core/browser/password_form_manager_unittest.cc:1703: EXPECT_CALL(*mock_store(), AddLogin(_)).Times(1); On 2015/08/07 14:00:40, vabr (Chromium) wrote: > ...
5 years, 4 months ago (2015-08-07 14:27:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272613002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272613002/120001
5 years, 4 months ago (2015-08-07 14:56:25 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 4 months ago (2015-08-07 15:40:35 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 15:41:20 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a733022db8b61afa96ab2579bbc4c4fb81506d48
Cr-Commit-Position: refs/heads/master@{#342360}

Powered by Google App Engine
This is Rietveld 408576698