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

Unified Diff: components/password_manager/core/browser/credential_manager_password_form_manager.cc

Issue 2754273003: Introduce restricted PasswordFormManager::GrabFetcher (Closed)
Patch Set: Remove redundant CredentialManagerPasswordFormManager::form_fetcher_ Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/credential_manager_password_form_manager.cc
diff --git a/components/password_manager/core/browser/credential_manager_password_form_manager.cc b/components/password_manager/core/browser/credential_manager_password_form_manager.cc
index 0677a17f1c345f1d653587f68fadc128f14470bb..4406d199befce93e1b68dcb05f56c52dc476a1d0 100644
--- a/components/password_manager/core/browser/credential_manager_password_form_manager.cc
+++ b/components/password_manager/core/browser/credential_manager_password_form_manager.cc
@@ -37,12 +37,12 @@ CredentialManagerPasswordFormManager::CredentialManagerPasswordFormManager(
form_fetcher.get()),
delegate_(delegate),
saved_form_(std::move(saved_form)),
- form_fetcher_(std::move(form_fetcher)),
weak_factory_(this) {
DCHECK(saved_form_);
// This condition is only false on iOS.
- if (form_fetcher_)
- form_fetcher_->Fetch();
+ if (form_fetcher)
+ form_fetcher->Fetch();
+ GrabFetcher(std::move(form_fetcher));
}
CredentialManagerPasswordFormManager::~CredentialManagerPasswordFormManager() {

Powered by Google App Engine
This is Rietveld 408576698