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

Issue 2252283005: Introduce password_manager::FormFetcher (Closed)

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

Description

Introduce password_manager::FormFetcher This CL adds a partial implementation of FormFetcher. Despite its name, the added FormFetcher does not fetch forms from the PasswordStore yet, this will come in a follow-up CL (see [1] for more context). The CL focuses on a single change: PasswordFormManager (PFM) should no longer own the fetched forms, their ownership is transferred to FormFetcher. Ultimately, FormFetcher instances will be shared among PFM instances and will do fetching for them, at which point it will be important that PFMs don't own the forms. Because transferring the ownership is a significant change, it has been separated in its own CL. BUG=621355 Committed: https://crrev.com/859b5c46d834b8974188cb5fe037ecaa18748f5c Cr-Commit-Position: refs/heads/master@{#414061}

Patch Set 1 #

Patch Set 2 : Remove outdated DCHECK #

Patch Set 3 : With tests #

Patch Set 4 : Remove unused #includes #

Patch Set 5 : virtual ~Consumer #

Patch Set 6 : Just rebased #

Patch Set 7 : Just rebased #

Patch Set 8 : Just rebased #

Patch Set 9 : Just rebased #

Total comments: 18

Patch Set 10 : Vasilii's review #

Total comments: 2

Patch Set 11 : Just updated #

Patch Set 12 : Handle double blacklisting #

Patch Set 13 : Just updated #

Patch Set 14 : Keep updating PasswordStore for blacklisting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -173 lines) Patch
M chrome/browser/ui/passwords/manage_passwords_state.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_state_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/credential_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_fetcher.h View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_fetcher_impl.h View 1 2 1 chunk +86 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_fetcher_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +111 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/form_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +247 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 2 3 4 5 6 7 8 9 8 chunks +32 lines, -39 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 15 chunks +83 lines, -117 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 3 chunks +7 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 60 (50 generated)
vabr (Chromium)
Hi Vasilii, While Vadym is reviewing the previous CL (dependency of this one), perhaps you ...
4 years, 4 months ago (2016-08-23 11:00:56 UTC) #37
vasilii
https://codereview.chromium.org/2252283005/diff/160001/components/password_manager/core/browser/form_fetcher.h File components/password_manager/core/browser/form_fetcher.h (right): https://codereview.chromium.org/2252283005/diff/160001/components/password_manager/core/browser/form_fetcher.h#newcode46 components/password_manager/core/browser/form_fetcher.h:46: const std::vector<const autofill::PasswordForm*>& non_federated, What is the reason that ...
4 years, 4 months ago (2016-08-23 15:01:13 UTC) #38
vabr (Chromium)
Thanks for the comments! I addressed them below, PTAL. Cheers, Vaclav https://codereview.chromium.org/2252283005/diff/160001/components/password_manager/core/browser/form_fetcher.h File components/password_manager/core/browser/form_fetcher.h (right): ...
4 years, 4 months ago (2016-08-23 15:27:56 UTC) #40
vasilii
https://codereview.chromium.org/2252283005/diff/180001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/2252283005/diff/180001/components/password_manager/core/browser/password_form_manager.cc#newcode294 components/password_manager/core/browser/password_form_manager.cc:294: new_blacklisted_ = base::MakeUnique<PasswordForm>(observed_form_); I'm afraid this implementation will not ...
4 years, 4 months ago (2016-08-24 09:51:47 UTC) #44
vabr (Chromium)
https://codereview.chromium.org/2252283005/diff/180001/components/password_manager/core/browser/password_form_manager.cc File components/password_manager/core/browser/password_form_manager.cc (right): https://codereview.chromium.org/2252283005/diff/180001/components/password_manager/core/browser/password_form_manager.cc#newcode294 components/password_manager/core/browser/password_form_manager.cc:294: new_blacklisted_ = base::MakeUnique<PasswordForm>(observed_form_); On 2016/08/24 09:51:47, vasilii wrote: > ...
4 years, 4 months ago (2016-08-24 11:48:50 UTC) #49
vabr (Chromium)
One more update after our chat, Vasilii, PTAL. Thanks! Vaclav
4 years, 4 months ago (2016-08-24 12:06:07 UTC) #52
vasilii
lgtm
4 years, 4 months ago (2016-08-24 12:07:40 UTC) #53
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/2252283005/250001
4 years, 4 months ago (2016-08-24 12:43:39 UTC) #56
commit-bot: I haz the power
Committed patchset #14 (id:250001)
4 years, 4 months ago (2016-08-24 13:23:31 UTC) #58
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 13:25:33 UTC) #60
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/859b5c46d834b8974188cb5fe037ecaa18748f5c
Cr-Commit-Position: refs/heads/master@{#414061}

Powered by Google App Engine
This is Rietveld 408576698