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

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

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 5523076186fdb4e67bbc6bdde4c033ae167d9873..14b65ebdf0fef5f05d424a88e6d73cd507bb2ad5 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1421,6 +1421,9 @@ int Browser::GetExtraRenderViewHeight() const {
void Browser::OnStartDownload(WebContents* source,
content::DownloadItem* download) {
+ if (!download_util::GetShouldShowInShelf(download))
+ return;
Nico 2012/09/25 03:07:18 test
sail 2012/10/02 20:24:38 Done. Added a DownloadTest.HiddenDownload test.
+
WebContents* constrained = GetConstrainingWebContents(source);
if (constrained != source) {
// Download in a constrained popup is shown in the tab that opened it.

Powered by Google App Engine
This is Rietveld 408576698