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

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

Issue 7324001: Revert 89864 - 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, 5 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 91739)
+++ chrome/browser/tab_contents/confirm_infobar_delegate.cc (working copy)
@@ -4,7 +4,6 @@
#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"
@@ -51,13 +50,6 @@
(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