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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.mm

Issue 1221173003: [Mac] Inform reference counted objects that hold a weak Browser* when the Browser is being destroye… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove dealloc override. Created 5 years, 5 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/download/download_shelf_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
index ebebb03f18c96560117ed7c28b07ca535c560912..10e1e83c820cbfddeef2b255a78794fd2a332337 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.mm
@@ -117,6 +117,10 @@ const NSSize kHoverCloseButtonDefaultSize = { 18, 18 };
return self;
}
+- (void)browserWillBeDestroyed {
tapted 2015/07/06 07:26:18 should come after dealloc (init[WithFoo] and deall
jackhou1 2015/07/07 03:27:27 Done.
+ navigator_ = nullptr;
+}
+
- (void)awakeFromNib {
DCHECK(hoverCloseButton_);

Powered by Google App Engine
This is Rietveld 408576698