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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_controller.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: 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/cocoa/download/download_item_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_controller.mm b/chrome/browser/ui/cocoa/download/download_item_controller.mm
index 28a454f559db99f58736f8e93a18e7ea44991631..56326960496ea395efd541c8f370956ac55c94b1 100644
--- a/chrome/browser/ui/cocoa/download/download_item_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_controller.mm
@@ -248,8 +248,8 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
[view setHidden:(NSMaxX([view frame]) > NSWidth(containerFrame))];
}
-- (void)downloadWasOpened {
- [shelf_ downloadWasOpened:self];
+- (void)downloadWasOpenedOrShown {
+ [shelf_ downloadWasOpenedOrShown:self];
}
- (IBAction)handleButtonClick:(id)sender {

Powered by Google App Engine
This is Rietveld 408576698