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/chrome_pages.cc

Issue 12995025: [Mac] DownloadShelf should be notified when autoclosing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: + NSTrackingInVisibleRect Created 7 years, 9 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/chrome_pages.cc
diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc
index 8d842647a0d64604dbe5f6a463a13ea5de4ed67e..79e948e8f6e18f4c68e66e3c551a92bbaf1262dc 100644
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -87,8 +87,9 @@ void ShowDownloads(Browser* browser) {
content::RecordAction(UserMetricsAction("ShowDownloads"));
if (browser->window()) {
DownloadShelf* shelf = browser->window()->GetDownloadShelf();
+ // The downloads page is always shown in response to a user action.
if (shelf->IsShowing())
- shelf->Close();
+ shelf->Close(DownloadShelf::USER_ACTION);
}
ShowSingletonTabOverwritingNTP(
browser,
« no previous file with comments | « chrome/browser/download/test_download_shelf.cc ('k') | chrome/browser/ui/cocoa/download/download_shelf_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698