summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/confirm_infobar_delegate.h
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 18:35:11 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-21 18:35:11 +0000
commit300dfbd90dfef6ecb06037f1c9599f4780877565 (patch)
treed3fb2c2fc2d59f6857ca5fcd0ac36a037efe01ea /chrome/browser/tab_contents/confirm_infobar_delegate.h
parent9276a31166bad9c5845193b2fb6ae916d8bfdde4 (diff)
downloadchromium_src-300dfbd90dfef6ecb06037f1c9599f4780877565.zip
chromium_src-300dfbd90dfef6ecb06037f1c9599f4780877565.tar.gz
chromium_src-300dfbd90dfef6ecb06037f1c9599f4780877565.tar.bz2
Don't rely on user gestures for deciding when to dismiss infobars.
Previously, we looked at the user gesture state when deciding whether to dismiss infobars. Now that WebKit's user gesture state doesn't lie, we can tell that this behavior is incorrect. Page-specific infobars, like translate, should close whenever the main frame navigates to a new page, regardless of whether that navigation was conducted from a user gesture. BUG=86417 Review URL: http://codereview.chromium.org/7205026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89864 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/confirm_infobar_delegate.h')
-rw-r--r--chrome/browser/tab_contents/confirm_infobar_delegate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/confirm_infobar_delegate.h b/chrome/browser/tab_contents/confirm_infobar_delegate.h
index 694ff28..76e2ade 100644
--- a/chrome/browser/tab_contents/confirm_infobar_delegate.h
+++ b/chrome/browser/tab_contents/confirm_infobar_delegate.h
@@ -59,6 +59,9 @@ class ConfirmInfoBarDelegate : public InfoBarDelegate {
explicit ConfirmInfoBarDelegate(TabContents* contents);
virtual ~ConfirmInfoBarDelegate();
+ virtual bool ShouldExpire(
+ const content::LoadCommittedDetails& details) const OVERRIDE;
+
private:
// InfoBarDelegate:
virtual InfoBar* CreateInfoBar(TabContentsWrapper* owner) OVERRIDE;