Chromium Code Reviews| 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. |