Index: chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
diff --git a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
index 935a33875e6729157c7f7504552b7650da961b45..d0ca55da4ebb47ba49ef85a12733b0e94c0a02fb 100644 |
--- a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
+++ b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
@@ -162,6 +162,7 @@ void PasswordGenerationPopupControllerImpl::PasswordAccepted() { |
return; |
driver_->GeneratedPasswordAccepted(current_password_); |
+ form_.new_password_value = current_password_; |
password_manager_->SetHasGeneratedPasswordForForm(driver_, form_, true); |
Hide(); |
} |