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

Issue 2090583003: Introduce password_manager::FormSaver (Closed)

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

Description

Introduce password_manager::FormSaver The goal: outsource modifying calls to PasswordStore made in PasswordFormManager to a separate class. This CL achieves that by: * Creating a FormSaver interface to provide the store-modifications needed by PFM. PFM is changed to require a FormSaver object on creation. * Separating the store-modifying code from PFM into FormSaverImpl, implementing FormSaver. * Adding tests for FormSaverImpl, reducing PFM tests accordingly, providing test support for stubbing FormSaver and using it in existing tests. TODO for a future CL: * Moving WipeStoreCopyIfOutdated to FormSaver. For more details see the design doc at https://docs.google.com/document/d/12CH_SV1gIJKaEIGTs7gWBiXrCMlBa3o32OyC2LRtPAo/edit?usp=sharing BUG=621355 R=dvadym@chromium.org Committed: https://crrev.com/0637ae71c31807c3882293be5f23453dd2e80342 Cr-Commit-Position: refs/heads/master@{#401647}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1199 lines, -508 lines) Patch
M chrome/browser/password_manager/save_password_infobar_delegate_android_unittest.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_state_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_test.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/components_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 3 chunks +5 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_password_form_manager.cc View 2 chunks +9 lines, -5 lines 0 comments Download
A components/password_manager/core/browser/form_saver.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_saver_impl.h View 1 1 chunk +76 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_saver_impl.cc View 1 1 chunk +127 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_saver_impl_unittest.cc View 1 1 chunk +504 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 9 chunks +27 lines, -26 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 16 chunks +147 lines, -214 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 58 chunks +167 lines, -252 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 6 chunks +8 lines, -4 lines 0 comments Download
A components/password_manager/core/browser/stub_form_saver.h View 1 1 chunk +40 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (2 generated)
vabr (Chromium)
Hi Vadym, Could you please have a look? If you feel this is too big ...
4 years, 6 months ago (2016-06-23 09:23:45 UTC) #1
dvadym
Hi Vaclav, thanks for refactoring this. In general it looks good, I have some comments. ...
4 years, 6 months ago (2016-06-23 15:28:22 UTC) #2
vabr (Chromium)
Hi Vadym Thanks for the helpful review! Comments addressed, please take a look. Vaclav https://codereview.chromium.org/2090583003/diff/1/components/password_manager/core/browser/form_saver.h ...
4 years, 6 months ago (2016-06-23 16:38:56 UTC) #3
dvadym
On 2016/06/23 16:38:56, vabr (Chromium) wrote: > Hi Vadym > > Thanks for the helpful ...
4 years, 6 months ago (2016-06-23 16:46:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090583003/20001
4 years, 6 months ago (2016-06-23 16:51:49 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-23 17:44:48 UTC) #7
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 17:47:21 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0637ae71c31807c3882293be5f23453dd2e80342
Cr-Commit-Position: refs/heads/master@{#401647}

Powered by Google App Engine
This is Rietveld 408576698