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

Unified Diff: content/public/test/mock_download_item.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
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_item.cc
diff --git a/content/public/test/mock_download_item.cc b/content/public/test/mock_download_item.cc
index 7b19c3195401c978600d92a8765c49f77202cafb..ba5d6814cb30d0610594e7a144a95fff5031849f 100644
--- a/content/public/test/mock_download_item.cc
+++ b/content/public/test/mock_download_item.cc
@@ -26,6 +26,11 @@ void MockDownloadItem::NotifyObserversDownloadOpened() {
observer.OnDownloadOpened(this);
}
+void MockDownloadItem::NotifyObserversDownloadShown() {
+ for (auto& observer : observers_)
+ observer.OnDownloadShown(this);
+}
+
void MockDownloadItem::NotifyObserversDownloadRemoved() {
for (auto& observer : observers_)
observer.OnDownloadRemoved(this);
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698