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

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

Issue 966983002: downloads: clicking "remove" on chrome://downloads should also hide shelf item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_mac.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_mac.mm b/chrome/browser/ui/cocoa/download/download_shelf_mac.mm
index cd21a384dd8125f8b7cacc68cef6b3b5913b89d6..49cf614ea264de7ec25dcc447abc70fe05eaa4f6 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_mac.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_mac.mm
@@ -19,6 +19,10 @@ void DownloadShelfMac::DoAddDownload(content::DownloadItem* download) {
[shelf_controller_ addDownloadItem:download];
}
+void DownloadShelfMac::RemoveDownload(content::DownloadItem* download) {
+ [shelf_controller_ removeDownloadItem:download];
+}
+
bool DownloadShelfMac::IsShowing() const {
return [shelf_controller_ isVisible] == YES;
}

Powered by Google App Engine
This is Rietveld 408576698