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

Unified Diff: ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm

Issue 2919023002: Do not dismiss the Save Password Infobar when a redirection occurs. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
diff --git a/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm b/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
index 7e444c5f36298684ef9aa01c965e7d071c8f6b23..e5a1797671c0dcef8f826f25026c27b759fec106 100644
--- a/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
+++ b/ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.mm
@@ -72,3 +72,8 @@
set_infobar_response(password_manager::metrics_util::CLICKED_NEVER);
return true;
}
+
+bool IOSChromeSavePasswordInfoBarDelegate::ShouldExpire(
+ const NavigationDetails& details) const {
+ return !details.is_redirect && ConfirmInfoBarDelegate::ShouldExpire(details);
+}
« no previous file with comments | « ios/chrome/browser/passwords/ios_chrome_save_password_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698