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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_controller.mm

Issue 699013002: [Cocoa] Crash fix, caused by recent tab indicator change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tabs/tab_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
index 08428b141c70620b975ee43b52b1873d4c4ef5a0..e994ad3d95fb05e9035ad3d40291d2fda199dae9 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
@@ -128,6 +128,10 @@ class MenuDelegate : public ui::SimpleMenuModel::Delegate {
}
- (void)dealloc {
+ if (mediaIndicatorButton_) {
Nico 2014/11/04 00:01:22 (nit: not needed, messages to nil are silently ign
miu 2014/11/04 00:22:29 Done.
+ [mediaIndicatorButton_ setAnimationDoneTarget:nil withAction:nil];
+ [mediaIndicatorButton_ setClickTarget:nil withAction:nil];
+ }
[[NSNotificationCenter defaultCenter] removeObserver:self];
[[self tabView] setController:nil];
[super dealloc];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698