| 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 05f7f9881bb3780ca1067e6f44ad403c3e057f2f..07d6da0cf0581aff88867263e579b64958110770 100644
|
| --- a/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc
|
| +++ b/chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc
|
| @@ -182,6 +182,13 @@ void PasswordGenerationPopupControllerImpl::Show(bool display_password) {
|
|
|
| if (!view_) {
|
| view_ = PasswordGenerationPopupView::Create(this);
|
| +
|
| + // Treat popup as being hidden if creation fails.
|
| + if (!view_) {
|
| + Hide();
|
| + return;
|
| + }
|
| +
|
| CalculateBounds();
|
| view_->Show();
|
| } else {
|
|
|