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

Unified Diff: chrome/browser/ui/browser.cc

Issue 8929026: Do not show downloads panel for temporary downloads. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: header necessary Created 9 years 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 | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/ui/webui/active_downloads_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
===================================================================
--- chrome/browser/ui/browser.cc (revision 114400)
+++ chrome/browser/ui/browser.cc (working copy)
@@ -3728,15 +3728,8 @@
if (DisplayOldDownloadsUI()) {
#if defined(OS_CHROMEOS) && !defined(USE_AURA)
- // Don't show content browser for extension/theme downloads from gallery.
- ExtensionService* service = profile_->GetExtensionService();
- if (!ChromeDownloadManagerDelegate::IsExtensionDownload(download) ||
- service == NULL ||
- !service->IsDownloadFromGallery(download->GetURL(),
- download->GetReferrerUrl())) {
- // Open the Active Downloads ui for chromeos.
+ if (ActiveDownloadsUI::ShouldShowPopup(profile_, download))
ActiveDownloadsUI::OpenPopup(profile_);
- }
#else
// GetDownloadShelf creates the download shelf if it was not yet created.
DownloadShelf* shelf = window()->GetDownloadShelf();
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/ui/webui/active_downloads_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698