| 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 6db0c28136e2a497308e7552f17147189aafac02..d946711d78758bd168cc69f858252c4d2900a8f5 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 @@ bool PasswordGenerationPopupControllerImpl::PossiblyAcceptPassword() {
|
| }
|
|
|
| void PasswordGenerationPopupControllerImpl::PasswordSelected(bool selected) {
|
| - if (!display_password_)
|
| + if (!display_password_ || selected == password_selected_)
|
| return;
|
|
|
| password_selected_ = selected;
|
| @@ -289,8 +289,7 @@ void PasswordGenerationPopupControllerImpl::OnSavedPasswordsLinkClicked() {
|
|
|
| void PasswordGenerationPopupControllerImpl::SetSelectionAtPoint(
|
| const gfx::Point& point) {
|
| - if (password_bounds_.Contains(point))
|
| - PasswordSelected(true);
|
| + PasswordSelected(password_bounds_.Contains(point));
|
| }
|
|
|
| bool PasswordGenerationPopupControllerImpl::AcceptSelectedLine() {
|
|
|