From 44b4b0ccfdfc1ca2a8a56094d86a554b79f43ce7 Mon Sep 17 00:00:00 2001 From: "paul@chromium.org" Date: Thu, 16 Jul 2009 22:04:43 +0000 Subject: Fix for the Mac download shelf crash when clearing all downloads. We also now automatically hide the shelf when the downloads are cleared. BUG=15855,15893 TEST=Download a few things, clear all downloads and the shelf will empty and hide. Review URL: http://codereview.chromium.org/149732 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20907 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/download_shelf_controller.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/cocoa/download_shelf_controller.h') diff --git a/chrome/browser/cocoa/download_shelf_controller.h b/chrome/browser/cocoa/download_shelf_controller.h index c1beb69..ff4cedc 100644 --- a/chrome/browser/cocoa/download_shelf_controller.h +++ b/chrome/browser/cocoa/download_shelf_controller.h @@ -47,4 +47,10 @@ class DownloadShelf; // Resizes the download shelf based on the state of the content area. - (void)resizeDownloadShelf; +// Remove a download, possibly via clearing browser data. +- (void)remove:(DownloadItemController*)download; + +// Notification that we are closing and should release our downloads. +- (void)exiting; + @end -- cgit v1.1