| Index: chrome/browser/ui/gtk/infobars/infobar_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/ui/gtk/infobars/infobar_gtk.cc (revision 102206)
|
| +++ chrome/browser/ui/gtk/infobars/infobar_gtk.cc (working copy)
|
| @@ -184,10 +184,9 @@
|
| }
|
|
|
| void InfoBarGtk::OnCloseButton(GtkWidget* button) {
|
| - // If we're not owned, we're already closing, so don't call
|
| - // InfoBarDismissed(), since this can lead to us double-recording dismissals.
|
| - if (delegate() && owned())
|
| - delegate()->InfoBarDismissed();
|
| + if (!owned())
|
| + return; // We're closing; don't call anything, it might access the owner.
|
| + delegate()->InfoBarDismissed();
|
| RemoveSelf();
|
| }
|
|
|
|
|