Index: content/browser/background_fetch/background_fetch_request_info.cc |
diff --git a/content/browser/background_fetch/background_fetch_request_info.cc b/content/browser/background_fetch/background_fetch_request_info.cc |
index 32cb29538b17f3bac854be7136af324190d3a848..45f63c8a4967fcf681c8fc2174b1e2185f2e5239 100644 |
--- a/content/browser/background_fetch/background_fetch_request_info.cc |
+++ b/content/browser/background_fetch/background_fetch_request_info.cc |
@@ -24,8 +24,14 @@ BackgroundFetchRequestInfo::BackgroundFetchRequestInfo( |
tag_(request.tag_), |
download_guid_(request.download_guid_), |
state_(request.state_), |
- interrupt_reason_(request.interrupt_reason_) {} |
+ interrupt_reason_(request.interrupt_reason_), |
+ file_path_(request.file_path_) {} |
-BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() = default; |
+BackgroundFetchRequestInfo::~BackgroundFetchRequestInfo() {} |
+ |
+bool BackgroundFetchRequestInfo::IsComplete() const { |
+ return (state_ == DownloadItem::DownloadState::COMPLETE || |
+ state_ == DownloadItem::DownloadState::CANCELLED); |
+} |
} // namespace content |