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

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

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the 'user acted' flag into DownloadItemModelData and get rid of SetOpened/SetShown in Download… Created 6 years, 6 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_item_mac.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_mac.mm b/chrome/browser/ui/cocoa/download/download_item_mac.mm
index 3efffe17d004d0b8b376dcdb01c28f49cf316117..e749adea5c243c35e123982ebb9c06fd8b06d6e1 100644
--- a/chrome/browser/ui/cocoa/download/download_item_mac.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_mac.mm
@@ -71,6 +71,11 @@ void DownloadItemMac::OnDownloadOpened(content::DownloadItem* download) {
[item_controller_ downloadWasOpened];
}
+void DownloadItemMac::OnDownloadShown(content::DownloadItem* download) {
+ DCHECK_EQ(download, download_model_.download());
+ [item_controller_ downloadWasShown];
+}
+
void DownloadItemMac::LoadIcon() {
IconManager* icon_manager = g_browser_process->icon_manager();
if (!icon_manager) {

Powered by Google App Engine
This is Rietveld 408576698