| Index: chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm
|
| diff --git a/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm b/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm
|
| index 014f5c0d844ad36c0b54b41c45c899b6df0b9968..12e764ff5fe88632829e183c0dfded575b19f53e 100644
|
| --- a/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm
|
| @@ -117,6 +117,10 @@ CGFloat kMinWidth = 320.0;
|
| ToolbarActionsBarBubbleDelegate::CLOSE_DISMISS_DEACTIVATION);
|
| acknowledged_ = YES;
|
| }
|
| + // Deallocation happens asynchronously in Cocoa, but that makes testing
|
| + // difficult. Explicitly destroy |delegate_| here so it can perform any
|
| + // necessary cleanup.
|
| + delegate_.reset();
|
| [super windowWillClose:notification];
|
| }
|
|
|
|
|