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

Issue 2098573002: Implement PasswordFormManager::WipeStoreCopyIfOutdated in FormSaver (Closed)

Created:
4 years, 6 months ago by vabr (Chromium)
Modified:
4 years, 5 months ago
Reviewers:
vasilii
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@621355_FormSaver
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PasswordFormManager::WipeStoreCopyIfOutdated in FormSaver PasswordFormManager ensures that outdated sync credentials are deleted, to help eliminate the situation when the sync credential is stored in the password store it protects. This CL moves the logic determining which forms to drop and the Remove call to PasswordStore from PasswordFormManager to FormSaver, the delegate supposed to be handling store operations for PFM. This leaves only reading calls to PasswordStore in PasswordFormManager. The CL also adds and removes tests and modifies test support as appropriate. This addresses a TODO from https://codereview.chromium.org/2090583003/. It concludes the first transition step from the design https://docs.google.com/document/d/12CH_SV1gIJKaEIGTs7gWBiXrCMlBa3o32OyC2LRtPAo/edit?usp=sharing . BUG=621355 Committed: https://crrev.com/8afac70d8152dafd3a4e539a095c12324e34d63d Cr-Commit-Position: refs/heads/master@{#402745}

Patch Set 1 #

Patch Set 2 : First attempt #

Patch Set 3 : Remove outdated tests #

Patch Set 4 : Fix more tests #

Patch Set 5 : Fix yet more tests #

Patch Set 6 : Self-review #

Total comments: 18

Patch Set 7 : Review comments #

Patch Set 8 : Fix compilation #

Total comments: 2

Patch Set 9 : More review comments #

Patch Set 10 : Fixed upload #

Total comments: 2

Patch Set 11 : Remove #includes #

Patch Set 12 : Just rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -100 lines) Patch
M components/password_manager/core/browser/form_saver.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/form_saver_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/form_saver_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +34 lines, -1 line 0 comments Download
M components/password_manager/core/browser/form_saver_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +91 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 chunks +2 lines, -27 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 2 chunks +6 lines, -69 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/stub_form_saver.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (9 generated)
vabr (Chromium)
Hi Vasilii, Could you please take a look? Thanks, Vaclav
4 years, 5 months ago (2016-06-28 06:08:36 UTC) #3
vasilii
https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver.h File components/password_manager/core/browser/form_saver.h (right): https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver.h#newcode61 components/password_manager/core/browser/form_saver.h:61: // |*preferred_match| is nulled. It makes no sense to ...
4 years, 5 months ago (2016-06-28 09:42:29 UTC) #5
vabr (Chromium)
Thanks for the review! Could you please have a look again? Cheers, Vaclav https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver.h File ...
4 years, 5 months ago (2016-06-28 11:43:40 UTC) #6
vasilii
https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver_impl.cc File components/password_manager/core/browser/form_saver_impl.cc (right): https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver_impl.cc#newcode108 components/password_manager/core/browser/form_saver_impl.cc:108: // Move the |best_matches| to a vector to avoid ...
4 years, 5 months ago (2016-06-28 13:07:55 UTC) #7
vabr (Chromium)
Thanks Vasilii, Comments addressed, please take a look. Cheers, Vaclav https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver_impl.cc File components/password_manager/core/browser/form_saver_impl.cc (right): https://codereview.chromium.org/2098573002/diff/100001/components/password_manager/core/browser/form_saver_impl.cc#newcode108 ...
4 years, 5 months ago (2016-06-28 14:57:38 UTC) #8
vabr (Chromium)
Sorry, I messed up the upload, changes to the for loop will come in the ...
4 years, 5 months ago (2016-06-28 14:59:43 UTC) #9
vabr (Chromium)
On 2016/06/28 14:59:43, vabr (Chromium) wrote: > Sorry, I messed up the upload, changes to ...
4 years, 5 months ago (2016-06-28 15:04:09 UTC) #10
vasilii
lgtm https://codereview.chromium.org/2098573002/diff/180001/components/password_manager/core/browser/form_saver_impl.cc File components/password_manager/core/browser/form_saver_impl.cc (right): https://codereview.chromium.org/2098573002/diff/180001/components/password_manager/core/browser/form_saver_impl.cc#newcode11 components/password_manager/core/browser/form_saver_impl.cc:11: #include <vector> Probably you don't need most of ...
4 years, 5 months ago (2016-06-28 15:10:40 UTC) #11
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/2098573002/210001
4 years, 5 months ago (2016-06-28 16:00:26 UTC) #14
vabr (Chromium)
Thanks! https://codereview.chromium.org/2098573002/diff/180001/components/password_manager/core/browser/form_saver_impl.cc File components/password_manager/core/browser/form_saver_impl.cc (right): https://codereview.chromium.org/2098573002/diff/180001/components/password_manager/core/browser/form_saver_impl.cc#newcode11 components/password_manager/core/browser/form_saver_impl.cc:11: #include <vector> On 2016/06/28 15:10:40, vasilii wrote: > ...
4 years, 5 months ago (2016-06-28 16:00:44 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/253918)
4 years, 5 months ago (2016-06-28 19:09:59 UTC) #17
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/2098573002/210001
4 years, 5 months ago (2016-06-29 06:33:50 UTC) #19
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 5 months ago (2016-06-29 07:21:42 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 07:23:34 UTC) #23
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/8afac70d8152dafd3a4e539a095c12324e34d63d
Cr-Commit-Position: refs/heads/master@{#402745}

Powered by Google App Engine
This is Rietveld 408576698