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 cbc8cbe5dd32a6b6d6a8dbd684c0fad473deb19d..3a5c323ac0bbb5ce25c918edc9580bea91bb5beb 100644 |
--- a/content/browser/download/download_item_impl.cc |
+++ b/content/browser/download/download_item_impl.cc |
@@ -149,6 +149,7 @@ DownloadItemImpl::DownloadItemImpl( |
DownloadInterruptReason interrupt_reason, |
bool opened, |
base::Time last_access_time, |
+ bool transient, |
const std::vector<DownloadItem::ReceivedSlice>& received_slices, |
const net::NetLogWithSource& net_log) |
: guid_(base::ToUpperASCII(guid)), |
@@ -171,6 +172,7 @@ DownloadItemImpl::DownloadItemImpl( |
delegate_(delegate), |
opened_(opened), |
last_access_time_(last_access_time), |
+ transient_(transient), |
current_path_(current_path), |
received_bytes_(received_bytes), |
all_data_saved_(state == COMPLETE), |
@@ -788,6 +790,10 @@ base::Time DownloadItemImpl::GetLastAccessTime() const { |
return last_access_time_; |
} |
+bool DownloadItemImpl::IsTransient() const { |
+ return transient_; |
+} |
+ |
BrowserContext* DownloadItemImpl::GetBrowserContext() const { |
return delegate_->GetBrowserContext(); |
} |