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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

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/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 4db589a06c096392ab15f12a7b6bdc812f02f9a9..91388d82d48991de75af0964a01a9b96547a47e8 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -332,7 +332,11 @@ void DownloadItemView::OnDownloadOpened(DownloadItem* download) {
base::TimeDelta::FromMilliseconds(kDisabledOnOpenDuration));
// Notify our parent.
- shelf_->OpenedDownload(this);
+ shelf_->OnDownloadOpened(this);
+}
+
+void DownloadItemView::OnDownloadShown(DownloadItem* download) {
+ shelf_->OnDownloadShown(this);
}
// View overrides

Powered by Google App Engine
This is Rietveld 408576698