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

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

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: Keep -[BookmarBarController dealloc] instead of changing all the tests. 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.h
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_controller.h b/chrome/browser/ui/cocoa/download/download_shelf_controller.h
index c264571b6f8b94217f042a1f89b43164b281ed6a..da33900999d1f5349fbca76442d4aa34031cdb3c 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_controller.h
+++ b/chrome/browser/ui/cocoa/download/download_shelf_controller.h
@@ -86,6 +86,9 @@ class PageNavigator;
- (id)initWithBrowser:(Browser*)browser
resizeDelegate:(id<ViewResizer>)resizeDelegate;
+// Called by BrowserWindowController when the Browser is being destroyed.
+- (void)browserWillBeDestroyed;
+
// Run when the user clicks the 'Show All' button.
- (IBAction)showDownloadsTab:(id)sender;
@@ -120,10 +123,6 @@ class PageNavigator;
// Called by individual item controllers when their downloads are opened.
- (void)downloadWasOpened:(DownloadItemController*)download;
-// Notification that the download shelf is going to be destroyed and should
-// release the downloads.
-- (void)exiting;
-
// Return the height of the download shelf.
- (float)height;

Powered by Google App Engine
This is Rietveld 408576698