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

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: Implement a separate callbacks flow for 'shown in shell' event to not mix with 'opened' Created 6 years, 7 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 a1b609801d36eaadf0b9a1762e2ffdbc1d4f9943..2300286c417fe4addc0787b33268fd68ea5fe501 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -335,6 +335,10 @@ void DownloadItemView::OnDownloadOpened(DownloadItem* download) {
shelf_->OpenedDownload(this);
}
+void DownloadItemView::OnDownloadShown(DownloadItem* download) {
+ shelf_->ShownDownload(this);
+}
+
// View overrides
// In dangerous mode we have to layout our buttons.

Powered by Google App Engine
This is Rietveld 408576698