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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 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 3bf069415ac7ea66de4e6511e3aa2f09684eae90..23b34de91ce5a51aa97a8b832250dac5941a7e39 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.cc
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.cc
@@ -108,10 +108,8 @@ scoped_ptr<InfoBar> SavePasswordInfoBarDelegate::CreateInfoBar(
#endif
bool SavePasswordInfoBarDelegate::ShouldExpire(
- const content::LoadCommittedDetails& details) const {
- bool is_not_redirect = !(details.entry->GetTransitionType() &
- content::PAGE_TRANSITION_IS_REDIRECT_MASK);
- return is_not_redirect && InfoBarDelegate::ShouldExpire(details);
+ const NavigationDetails& details) const {
+ return !details.is_redirect && InfoBarDelegate::ShouldExpire(details);
}
int SavePasswordInfoBarDelegate::GetIconID() const {

Powered by Google App Engine
This is Rietveld 408576698