diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 01:55:10 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 01:55:10 +0000 |
commit | 818b9257c3348614cee083020d9b3414cb22e3f6 (patch) | |
tree | 7ae644f983c6c0b7080e933627ef1ed84b4ae754 /chrome/browser/infobar_delegate.h | |
parent | ab63e26f6872c804cb50637982dba419bfb1b45c (diff) | |
download | chromium_src-818b9257c3348614cee083020d9b3414cb22e3f6.zip chromium_src-818b9257c3348614cee083020d9b3414cb22e3f6.tar.gz chromium_src-818b9257c3348614cee083020d9b3414cb22e3f6.tar.bz2 |
Fix crash with plugin installer infobar due to the infobardelegate not being removed from the containing TabContents.
http://crbug.com/4620
Review URL: http://codereview.chromium.org/12624
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/infobar_delegate.h')
-rw-r--r-- | chrome/browser/infobar_delegate.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/infobar_delegate.h b/chrome/browser/infobar_delegate.h index 33b750a..f23dea6 100644 --- a/chrome/browser/infobar_delegate.h +++ b/chrome/browser/infobar_delegate.h @@ -113,11 +113,13 @@ class ConfirmInfoBarDelegate : public AlertInfoBarDelegate { // returns "OK" for the OK button and "Cancel" for the Cancel button. virtual std::wstring GetButtonLabel(InfoBarButton button) const; - // Called when the OK button is pressed. - virtual void Accept() {} + // Called when the OK button is pressed. If the function returns true, the + // InfoBarDelegate should be removed from the associated TabContents. + virtual bool Accept() { return true; } - // Called when the Cancel button is pressed. - virtual void Cancel() {} + // Called when the Cancel button is pressed. If the function returns true, + // the InfoBarDelegate should be removed from the associated TabContents. + virtual bool Cancel() { return true; } // Overridden from InfoBarDelegate: virtual InfoBar* CreateInfoBar(); |