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

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

Issue 1142153002: Simplify infobar expiry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile Created 5 years, 7 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 7e2f2d84c221a4b712f79f650ee5381a70f041f9..ea3b83fad9cd4ac260a88c1e679082c3904ba749 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.cc
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.cc
@@ -133,8 +133,7 @@ int SavePasswordInfoBarDelegate::GetIconID() const {
bool SavePasswordInfoBarDelegate::ShouldExpire(
const NavigationDetails& details) const {
- return !details.is_redirect &&
- infobars::InfoBarDelegate::ShouldExpire(details);
+ return !details.is_redirect && ConfirmInfoBarDelegate::ShouldExpire(details);
}
void SavePasswordInfoBarDelegate::InfoBarDismissed() {

Powered by Google App Engine
This is Rietveld 408576698