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

Unified Diff: chrome/browser/tab_contents/confirm_infobar_delegate.cc

Issue 7205026: Don't rely on user gestures for deciding when to dismiss infobars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/tab_contents/confirm_infobar_delegate.cc
===================================================================
--- chrome/browser/tab_contents/confirm_infobar_delegate.cc (revision 89836)
+++ chrome/browser/tab_contents/confirm_infobar_delegate.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
+#include "content/browser/tab_contents/navigation_details.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -50,6 +51,13 @@
(confirm_delegate->GetMessageText() == GetMessageText());
}
+bool ConfirmInfoBarDelegate::ShouldExpire(
+ const content::LoadCommittedDetails& details) const {
+ if (details.did_replace_entry)
+ return false;
+ return InfoBarDelegate::ShouldExpire(details);
+}
+
ConfirmInfoBarDelegate* ConfirmInfoBarDelegate::AsConfirmInfoBarDelegate() {
return this;
}
« no previous file with comments | « chrome/browser/tab_contents/confirm_infobar_delegate.h ('k') | chrome/browser/tab_contents/infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698