| Index: chrome/browser/password_manager/chrome_password_manager_client.cc
|
| diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| index cddf254bbe0972f3d7a5bb0ff323c16be2940cf0..abc635ce0355283ad962fe37380855b3583832f0 100644
|
| --- a/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| +++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| @@ -292,8 +292,8 @@ void ChromePasswordManagerClient::ShowPasswordGenerationPopup(
|
| const autofill::PasswordForm& form) {
|
| // TODO(gcasto): Validate data in PasswordForm.
|
|
|
| - // Only implemented for Aura right now.
|
| -#if defined(USE_AURA)
|
| + // Not yet implemented on other platforms.
|
| +#if defined(USE_AURA) || defined(OS_MACOSX)
|
| gfx::RectF element_bounds_in_screen_space = GetBoundsInScreenSpace(bounds);
|
|
|
| popup_controller_ =
|
| @@ -307,16 +307,15 @@ void ChromePasswordManagerClient::ShowPasswordGenerationPopup(
|
| web_contents(),
|
| web_contents()->GetNativeView());
|
| popup_controller_->Show(true /* display_password */);
|
| -#endif // #if defined(USE_AURA)
|
| +#endif // defined(USE_AURA) || defined(OS_MACOSX)
|
| }
|
|
|
| void ChromePasswordManagerClient::ShowPasswordEditingPopup(
|
| const gfx::RectF& bounds,
|
| const autofill::PasswordForm& form) {
|
| - // Only implemented for Aura right now.
|
| -#if defined(USE_AURA)
|
| gfx::RectF element_bounds_in_screen_space = GetBoundsInScreenSpace(bounds);
|
| -
|
| + // Not yet implemented on other platforms.
|
| +#if defined(USE_AURA) || defined(OS_MACOSX)
|
| popup_controller_ =
|
| autofill::PasswordGenerationPopupControllerImpl::GetOrCreate(
|
| popup_controller_,
|
| @@ -328,7 +327,7 @@ void ChromePasswordManagerClient::ShowPasswordEditingPopup(
|
| web_contents(),
|
| web_contents()->GetNativeView());
|
| popup_controller_->Show(false /* display_password */);
|
| -#endif // #if defined(USE_AURA)
|
| +#endif // defined(USE_AURA) || defined(OS_MACOSX)
|
| }
|
|
|
| void ChromePasswordManagerClient::CommitFillPasswordForm(
|
|
|