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 747b9a523b692096f33aec01a012bdada889eebb..db3f0a0448a81cfea6e15b411b8471e81474a787 100644 |
--- a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
+++ b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
@@ -173,7 +173,7 @@ void PasswordGenerationPopupControllerImpl::CalculateBounds() { |
void PasswordGenerationPopupControllerImpl::Show(bool display_password) { |
display_password_ = display_password; |
- if (display_password_) |
+ if (display_password_ && current_password_.empty()) |
current_password_ = base::ASCIIToUTF16(generator_->Generate()); |
if (!view_) { |