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 d946711d78758bd168cc69f858252c4d2900a8f5..6db0c28136e2a497308e7552f17147189aafac02 100644 |
--- a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
+++ b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc |
@@ -137,7 +137,7 @@ |
} |
void PasswordGenerationPopupControllerImpl::PasswordSelected(bool selected) { |
- if (!display_password_ || selected == password_selected_) |
+ if (!display_password_) |
return; |
password_selected_ = selected; |
@@ -289,7 +289,8 @@ |
void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint( |
const gfx::Point& point) { |
- PasswordSelected(password_bounds_.Contains(point)); |
+ if (password_bounds_.Contains(point)) |
+ PasswordSelected(true); |
} |
bool PasswordGenerationPopupControllerImpl::AcceptSelectedLine() { |