Index: chrome/browser/password_manager/password_generation_manager.cc |
diff --git a/chrome/browser/password_manager/password_generation_manager.cc b/chrome/browser/password_manager/password_generation_manager.cc |
index 45352ebfbad129691e5e434c3cd3e5136e843e50..46ed1d690c9828e653f651d4dd936de08db56915 100644 |
--- a/chrome/browser/password_manager/password_generation_manager.cc |
+++ b/chrome/browser/password_manager/password_generation_manager.cc |
@@ -125,19 +125,34 @@ void PasswordGenerationManager::OnShowPasswordGenerationPopup( |
autofill::PasswordGenerationPopupControllerImpl::GetOrCreate( |
popup_controller_, |
element_bounds_in_screen_space, |
- form, |
+ &form, |
password_generator_.get(), |
driver_->GetPasswordManager(), |
observer_, |
web_contents_, |
web_contents_->GetView()->GetNativeView()); |
- popup_controller_->Show(); |
+ popup_controller_->Show(true /* display_password */); |
#endif // #if defined(USE_AURA) |
} |
void PasswordGenerationManager::OnShowPasswordEditingPopup( |
const gfx::RectF& bounds) { |
- // TODO(gcasto): Enable this. |
+ // Only implemented for Aura right now. |
+#if defined(USE_AURA) |
+ gfx::RectF element_bounds_in_screen_space = GetBoundsInScreenSpace(bounds); |
+ |
+ popup_controller_ = |
+ autofill::PasswordGenerationPopupControllerImpl::GetOrCreate( |
+ popup_controller_, |
+ element_bounds_in_screen_space, |
+ NULL, |
+ NULL, |
+ NULL, |
+ observer_, |
+ web_contents_, |
+ web_contents_->GetView()->GetNativeView()); |
+ popup_controller_->Show(false /* display_password */); |
+#endif // #if defined(USE_AURA) |
} |
void PasswordGenerationManager::OnHidePasswordGenerationPopup() { |