Index: chrome/browser/password_manager/save_password_infobar_delegate.cc |
diff --git a/chrome/browser/password_manager/save_password_infobar_delegate.cc b/chrome/browser/password_manager/save_password_infobar_delegate.cc |
index 882bde089ca309d7b2d43e9bac4343f35dc6a18c..79eb00d5278edb5c38a6f4d5fc72980a50fcec01 100644 |
--- a/chrome/browser/password_manager/save_password_infobar_delegate.cc |
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.cc |
@@ -44,10 +44,9 @@ void SavePasswordInfoBarDelegate::Create( |
#endif |
InfoBarService::FromWebContents(web_contents)->AddInfoBar( |
- SavePasswordInfoBarDelegate::CreateInfoBar( |
- scoped_ptr<SavePasswordInfoBarDelegate>( |
- new SavePasswordInfoBarDelegate(form_to_save.Pass(), |
- uma_histogram_suffix)))); |
+ ConfirmInfoBarDelegate::CreateInfoBar(scoped_ptr<ConfirmInfoBarDelegate>( |
+ new SavePasswordInfoBarDelegate(form_to_save.Pass(), |
+ uma_histogram_suffix)))); |
} |
SavePasswordInfoBarDelegate::~SavePasswordInfoBarDelegate() { |
@@ -75,12 +74,6 @@ SavePasswordInfoBarDelegate::~SavePasswordInfoBarDelegate() { |
} |
} |
-void SavePasswordInfoBarDelegate::SetUseAdditionalPasswordAuthentication( |
- bool use_additional_authentication) { |
- form_to_save_->SetUseAdditionalPasswordAuthentication( |
Ilya Sherman
2014/10/08 18:58:22
It looks like SetUseAdditionalPasswordAuthenticati
|
- use_additional_authentication); |
-} |
- |
SavePasswordInfoBarDelegate::SavePasswordInfoBarDelegate( |
scoped_ptr<password_manager::PasswordFormManager> form_to_save, |
const std::string& uma_histogram_suffix) |
@@ -95,21 +88,6 @@ SavePasswordInfoBarDelegate::SavePasswordInfoBarDelegate( |
} |
} |
-#if !defined(OS_ANDROID) |
-// On Android, the save password infobar supports an additional checkbox to |
-// require additional authentication before autofilling a saved password. |
-// Because of this non-standard UI, the Android version is special cased and |
-// constructed in: |
-// chrome/browser/ui/android/infobars/save_password_infobar.cc |
- |
-// static |
-scoped_ptr<infobars::InfoBar> SavePasswordInfoBarDelegate::CreateInfoBar( |
- scoped_ptr<SavePasswordInfoBarDelegate> delegate) { |
- return ConfirmInfoBarDelegate::CreateInfoBar( |
- delegate.PassAs<ConfirmInfoBarDelegate>()); |
-} |
-#endif |
- |
bool SavePasswordInfoBarDelegate::ShouldExpire( |
const NavigationDetails& details) const { |
return !details.is_redirect && |