Index: content/browser/download/download_manager_impl.cc |
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc |
index 983e26ae07cec13d81b500b4af0a86ed63977cb3..b0ed95027a2dc17368dc97a6bab31fd46b068ae1 100644 |
--- a/content/browser/download/download_manager_impl.cc |
+++ b/content/browser/download/download_manager_impl.cc |
@@ -141,6 +141,7 @@ class DownloadItemFactoryImpl : public DownloadItemFactory { |
DownloadDangerType danger_type, |
DownloadInterruptReason interrupt_reason, |
bool opened, |
+ const base::Time& last_access_time, |
const std::vector<DownloadItem::ReceivedSlice>& received_slices, |
const net::NetLogWithSource& net_log) override { |
return new DownloadItemImpl( |
@@ -148,7 +149,7 @@ class DownloadItemFactoryImpl : public DownloadItemFactory { |
referrer_url, site_url, tab_url, tab_refererr_url, mime_type, |
original_mime_type, start_time, end_time, etag, last_modified, |
received_bytes, total_bytes, hash, state, danger_type, interrupt_reason, |
- opened, received_slices, net_log); |
+ opened, last_access_time, received_slices, net_log); |
} |
DownloadItemImpl* CreateActiveItem( |
@@ -660,6 +661,7 @@ DownloadItem* DownloadManagerImpl::CreateDownloadItem( |
DownloadDangerType danger_type, |
DownloadInterruptReason interrupt_reason, |
bool opened, |
+ const base::Time& last_access_time, |
const std::vector<DownloadItem::ReceivedSlice>& received_slices) { |
if (base::ContainsKey(downloads_, id)) { |
NOTREACHED(); |
@@ -670,7 +672,8 @@ DownloadItem* DownloadManagerImpl::CreateDownloadItem( |
this, guid, id, current_path, target_path, url_chain, referrer_url, |
site_url, tab_url, tab_refererr_url, mime_type, original_mime_type, |
start_time, end_time, etag, last_modified, received_bytes, total_bytes, |
- hash, state, danger_type, interrupt_reason, opened, received_slices, |
+ hash, state, danger_type, interrupt_reason, opened, last_access_time, |
+ received_slices, |
net::NetLogWithSource::Make(net_log_, net::NetLogSourceType::DOWNLOAD)); |
downloads_[id] = base::WrapUnique(item); |
downloads_by_guid_[guid] = item; |