| Index: chrome/browser/ui/views/infobars/confirm_infobar.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/infobars/confirm_infobar.cc (revision 102604)
|
| +++ chrome/browser/ui/views/infobars/confirm_infobar.cc (working copy)
|
| @@ -98,6 +98,8 @@
|
|
|
| void ConfirmInfoBar::ButtonPressed(views::Button* sender,
|
| const views::Event& event) {
|
| + if (!owned())
|
| + return; // We're closing; don't call anything, it might access the owner.
|
| ConfirmInfoBarDelegate* delegate = GetDelegate();
|
| if ((ok_button_ != NULL) && sender == ok_button_) {
|
| if (delegate->Accept())
|
| @@ -122,6 +124,8 @@
|
| }
|
|
|
| void ConfirmInfoBar::LinkClicked(views::Link* source, int event_flags) {
|
| + if (!owned())
|
| + return; // We're closing; don't call anything, it might access the owner.
|
| DCHECK(link_ != NULL);
|
| DCHECK_EQ(link_, source);
|
| if (GetDelegate()->LinkClicked(
|
|
|