Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index c668ed687a7bb706fd47db6511ba221e126e05a4..3f54239df75c68c0afb5561edc0f0d97880fc58f 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -1429,6 +1429,13 @@ int Browser::GetExtraRenderViewHeight() const { |
void Browser::OnStartDownload(WebContents* source, |
content::DownloadItem* download) { |
+ if (!download->ShouldShowInDownloadsUI()) { |
+ fprintf(stderr, "%s skipping\n", __PRETTY_FUNCTION__); |
Greg Billock
2012/10/02 19:12:20
Take out printfs.
sail
2012/10/02 19:14:51
Done.
Oops, removed.
|
+ return; |
+ } else { |
+ fprintf(stderr, "%s NOT skipping\n", __PRETTY_FUNCTION__); |
+ } |
+ |
WebContents* constrained = GetConstrainingWebContents(source); |
if (constrained != source) { |
// Download in a constrained popup is shown in the tab that opened it. |