Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1663)

Unified Diff: chrome/browser/password_manager/save_password_infobar_delegate.cc

Issue 641753002: Remove Password Authentication code that is no longer used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 &&
« no previous file with comments | « chrome/browser/password_manager/save_password_infobar_delegate.h ('k') | chrome/browser/ui/android/infobars/confirm_infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698