Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm

Issue 2076093004: [Extensions UI] Handle multiple warning bubbles racing to show (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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];
}

Powered by Google App Engine
This is Rietveld 408576698