Index: content/browser/download/download_item_impl.cc |
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc |
index 72159e425e25f81b1872f58c51a5d71f36eea475..127d707cb62ad61788808d150da41f031e7c295d 100644 |
--- a/content/browser/download/download_item_impl.cc |
+++ b/content/browser/download/download_item_impl.cc |
@@ -160,6 +160,7 @@ DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate, |
open_enabled_(true), |
delegate_delayed_complete_(false), |
bound_net_log_(bound_net_log), |
+ should_show_in_downloads_ui_(true), |
ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) { |
delegate_->Attach(); |
if (state_ == IN_PROGRESS_INTERNAL) |
@@ -709,6 +710,14 @@ WebContents* DownloadItemImpl::GetWebContents() const { |
return NULL; |
} |
+void DownloadItemImpl::SetShouldShowInDownloadsUI(bool should_show) { |
+ should_show_in_downloads_ui_ = should_show; |
+} |
+ |
+bool DownloadItemImpl::ShouldShowInDownloadsUI() const { |
+ return should_show_in_downloads_ui_; |
+} |
+ |
void DownloadItemImpl::OnContentCheckCompleted( |
content::DownloadDangerType danger_type) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |