| Index: components/password_manager/content/browser/credential_manager_dispatcher.cc
|
| diff --git a/components/password_manager/content/browser/credential_manager_dispatcher.cc b/components/password_manager/content/browser/credential_manager_dispatcher.cc
|
| index 6f6780cfb2e3beafcf5e7d759101f66b9acef537..030612d58f80cdef09f2dcc87fbe32daa022ccf7 100644
|
| --- a/components/password_manager/content/browser/credential_manager_dispatcher.cc
|
| +++ b/components/password_manager/content/browser/credential_manager_dispatcher.cc
|
| @@ -64,13 +64,14 @@ void CredentialManagerDispatcher::OnStore(
|
| if (!client_->IsSavingAndFillingEnabledForCurrentPage())
|
| return;
|
|
|
| + GURL origin = web_contents()->GetLastCommittedURL().GetOrigin();
|
| std::unique_ptr<autofill::PasswordForm> form(
|
| - CreatePasswordFormFromCredentialInfo(
|
| - credential, web_contents()->GetLastCommittedURL().GetOrigin()));
|
| + CreatePasswordFormFromCredentialInfo(credential, origin));
|
| form->skip_zero_click = !IsZeroClickAllowed();
|
|
|
| form_manager_.reset(new CredentialManagerPasswordFormManager(
|
| - client_, GetDriver(), *form, this));
|
| + client_, GetDriver(), *CreateObservedPasswordFormFromOrigin(origin),
|
| + std::move(form), this));
|
| }
|
|
|
| void CredentialManagerDispatcher::OnProvisionalSaveComplete() {
|
|
|