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

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: Added browser and unit tests. Renamed 'UserActed' to 'OpenedOrShown'. Created 4 years, 1 month 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 9fba09021e21aa63cbd3be765ac183fdd034d93b..3c3c761fd5921553d77b797392c4728142d7a7c0 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -333,7 +333,12 @@ void DownloadItemView::OnDownloadOpened(DownloadItem* download) {
base::TimeDelta::FromMilliseconds(kDisabledOnOpenDuration));
// Notify our parent.
- shelf_->OpenedDownload();
+ shelf_->OnDownloadOpened();
+}
+
+void DownloadItemView::OnDownloadShown(DownloadItem* download) {
+ // Notify our parent.
+ shelf_->OnDownloadShown();
}
// View overrides
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.h ('k') | chrome/browser/ui/views/download/download_shelf_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698