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

Issue 2263933002: Make FormFetcher a PasswordStoreConsumer (Closed)

Created:
4 years, 4 months ago by vabr (Chromium)
Modified:
4 years ago
Reviewers:
vasilii
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@621355_form_fetcher
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FormFetcher a PasswordStoreConsumer Instead of getting the new store results from PasswordFormManager, the FormFetcher will now itself be a PasswordStoreConsumer, relieving the PasswordFormManager from that duty. The FormFetcher will still stay owned by a PasswordFormManager after this CL, changing that is the task of a follow-up CL. However, in tests it will already be possible to inject a mock version of the FormFetcher. This is used to simplify and revise some tests, notably password_form_manager_unittest.cc. BUG=621355 Committed: https://crrev.com/daecd125374ae8d6526b58e56e0429550f78aca4 Cr-Commit-Position: refs/heads/master@{#436571}

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP: components_unittests compiling and passing #

Patch Set 4 : Just rebased #

Patch Set 5 : All compiles, tests should pass, TODOs still in #

Patch Set 6 : Just rebased #

Patch Set 7 : Fix Android compile and one test, TODOs still in #

Patch Set 8 : Just rebased #

Patch Set 9 : Fix stack-use-after-return #

Patch Set 10 : Just rebased #

Patch Set 11 : Fix rebase #

Patch Set 12 : Create FakeFormFetcher before use #

Patch Set 13 : Remaining TODOs #

Total comments: 28

Patch Set 14 : Partly addressed comments, checking how are tests doing so far #

Patch Set 15 : Do not Fetch() from FormFetcherImpl c-tor #

Patch Set 16 : Do not Fetch() from FakeFormFetcher c-tor #

Total comments: 14

Patch Set 17 : Just rebased #

Patch Set 18 : More comments #

Total comments: 2

Patch Set 19 : Also operator= is now default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+964 lines, -914 lines) Patch
M chrome/browser/password_manager/save_password_infobar_delegate_android_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_state_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +18 lines, -23 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_test.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -16 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +14 lines, -23 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -5 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_password_form_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/credential_manager_password_form_manager.cc View 2 chunks +6 lines, -4 lines 0 comments Download
A components/password_manager/core/browser/fake_form_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +75 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/fake_form_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +49 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/form_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/form_fetcher_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +20 lines, -17 lines 0 comments Download
M components/password_manager/core/browser/form_fetcher_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +64 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/form_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +139 lines, -36 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +23 lines, -46 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +13 lines, -83 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 82 chunks +402 lines, -578 lines 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +9 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -13 lines 0 comments Download
M components/password_manager/core/browser/password_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +10 lines, -0 lines 0 comments Download
M components/password_manager/sync/browser/sync_credentials_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +45 lines, -45 lines 0 comments Download

Messages

Total messages: 68 (57 generated)
vabr (Chromium)
Hi Vasilii, Could you please review? It is not urgent at all. This is the ...
4 years ago (2016-11-30 13:24:30 UTC) #37
vasilii
Just nits, no fundamental concerns. https://codereview.chromium.org/2263933002/diff/240001/components/password_manager/core/browser/fake_form_fetcher.h File components/password_manager/core/browser/fake_form_fetcher.h (right): https://codereview.chromium.org/2263933002/diff/240001/components/password_manager/core/browser/fake_form_fetcher.h#newcode66 components/password_manager/core/browser/fake_form_fetcher.h:66: State state_ = State::NOT_WAITING; ...
4 years ago (2016-12-01 10:24:51 UTC) #38
vabr (Chromium)
Thanks, Vasilii! Could you please review again? Cheers, Vaclav https://codereview.chromium.org/2263933002/diff/240001/components/password_manager/core/browser/fake_form_fetcher.h File components/password_manager/core/browser/fake_form_fetcher.h (right): https://codereview.chromium.org/2263933002/diff/240001/components/password_manager/core/browser/fake_form_fetcher.h#newcode66 components/password_manager/core/browser/fake_form_fetcher.h:66: ...
4 years ago (2016-12-02 14:53:53 UTC) #47
vasilii
https://codereview.chromium.org/2263933002/diff/300001/components/password_manager/core/browser/fake_form_fetcher.cc File components/password_manager/core/browser/fake_form_fetcher.cc (right): https://codereview.chromium.org/2263933002/diff/300001/components/password_manager/core/browser/fake_form_fetcher.cc#newcode14 components/password_manager/core/browser/fake_form_fetcher.cc:14: FakeFormFetcher::FakeFormFetcher() {} = default for consistency. https://codereview.chromium.org/2263933002/diff/300001/components/password_manager/core/browser/form_fetcher_impl_unittest.cc File components/password_manager/core/browser/form_fetcher_impl_unittest.cc ...
4 years ago (2016-12-05 14:35:58 UTC) #50
vabr (Chromium)
Thanks, Vasilii! I addressed your comments, please take a look. Cheers, Vaclav https://codereview.chromium.org/2263933002/diff/300001/components/password_manager/core/browser/fake_form_fetcher.cc File components/password_manager/core/browser/fake_form_fetcher.cc ...
4 years ago (2016-12-06 09:54:07 UTC) #53
vasilii
https://codereview.chromium.org/2263933002/diff/340001/components/password_manager/core/browser/password_store.cc File components/password_manager/core/browser/password_store.cc (right): https://codereview.chromium.org/2263933002/diff/340001/components/password_manager/core/browser/password_store.cc#newcode76 components/password_manager/core/browser/password_store.cc:76: PasswordStore::FormDigest& PasswordStore::FormDigest::operator=( This and below should also be default.
4 years ago (2016-12-06 10:38:08 UTC) #56
vabr (Chromium)
https://codereview.chromium.org/2263933002/diff/340001/components/password_manager/core/browser/password_store.cc File components/password_manager/core/browser/password_store.cc (right): https://codereview.chromium.org/2263933002/diff/340001/components/password_manager/core/browser/password_store.cc#newcode76 components/password_manager/core/browser/password_store.cc:76: PasswordStore::FormDigest& PasswordStore::FormDigest::operator=( On 2016/12/06 10:38:07, vasilii wrote: > This ...
4 years ago (2016-12-06 10:41:48 UTC) #59
vasilii
lgtm
4 years ago (2016-12-06 10:53:54 UTC) #60
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/2263933002/360001
4 years ago (2016-12-06 11:04:43 UTC) #63
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years ago (2016-12-06 11:41:07 UTC) #66
commit-bot: I haz the power
4 years ago (2016-12-06 11:43:02 UTC) #68
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/daecd125374ae8d6526b58e56e0429550f78aca4
Cr-Commit-Position: refs/heads/master@{#436571}

Powered by Google App Engine
This is Rietveld 408576698