| Index: chrome/browser/ui/cocoa/infobars/infobar_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
|
| index c81a3635a3c36d10e05ffff98d066efd89c39fad..e7825bbb09a93fb0beecbc7136c8f2590a9ee872 100644
|
| --- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
|
| @@ -236,10 +236,9 @@ const float kAnimateCloseDuration = 0.12;
|
| if (!infoBarClosing_)
|
| return;
|
|
|
| - // Notify the delegate that the infobar was closed. The delegate will delete
|
| - // itself as a result of InfoBarClosed(), so we null out its pointer.
|
| + // Notify the delegate that the infobar was closed.
|
| if (delegate_) {
|
| - delegate_->InfoBarClosed();
|
| + delete delegate_;
|
| delegate_ = NULL;
|
| }
|
|
|
|
|