| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 8a930a4bfaa2dd9fd9c4d71024ccc730113ec90e..c28b51511fa6857a25381aa21a29b0c64b7ccc2b 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1438,6 +1438,9 @@ int Browser::GetExtraRenderViewHeight() const {
|
|
|
| void Browser::OnStartDownload(WebContents* source,
|
| content::DownloadItem* download) {
|
| + if (!download_util::ShouldShowInShelf(download))
|
| + return;
|
| +
|
| WebContents* constrained = GetConstrainingWebContents(source);
|
| if (constrained != source) {
|
| // Download in a constrained popup is shown in the tab that opened it.
|
|
|