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

Unified Diff: chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc

Issue 447873004: [Password Generation] Wait longer to dismiss suggestion UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 4 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: 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_) {

Powered by Google App Engine
This is Rietveld 408576698