Index: components/history/core/browser/download_row.cc |
diff --git a/components/history/core/browser/download_row.cc b/components/history/core/browser/download_row.cc |
index fac2b5caa2e8196bf35289313d9ac9e36c00a07b..c8a8afc924803d0203f8f5c9362256dd15244b76 100644 |
--- a/components/history/core/browser/download_row.cc |
+++ b/components/history/core/browser/download_row.cc |
@@ -15,7 +15,8 @@ DownloadRow::DownloadRow() |
danger_type(DownloadDangerType::NOT_DANGEROUS), |
interrupt_reason(0), |
id(kInvalidDownloadId), |
- opened(false) { |
+ opened(false), |
+ transient(false) { |
// |interrupt_reason| is left undefined by this constructor as the value |
// has no meaning unless |state| is equal to kStateInterrupted. |
} |
@@ -45,6 +46,7 @@ DownloadRow::DownloadRow( |
const std::string& guid, |
bool download_opened, |
base::Time last_access, |
+ bool transient, |
const std::string& ext_id, |
const std::string& ext_name, |
const std::vector<DownloadSliceInfo>& download_slice_info) |
@@ -72,6 +74,7 @@ DownloadRow::DownloadRow( |
guid(guid), |
opened(download_opened), |
last_access_time(last_access), |
+ transient(transient), |
by_ext_id(ext_id), |
by_ext_name(ext_name), |
download_slice_info(download_slice_info) {} |
@@ -95,7 +98,8 @@ bool DownloadRow::operator==(const DownloadRow& rhs) const { |
interrupt_reason == rhs.interrupt_reason && hash == rhs.hash && |
id == rhs.id && guid == rhs.guid && opened == rhs.opened && |
last_access_time == rhs.last_access_time && |
- by_ext_id == rhs.by_ext_id && by_ext_name == rhs.by_ext_name && |
+ transient == rhs.transient && by_ext_id == rhs.by_ext_id && |
+ by_ext_name == rhs.by_ext_name && |
download_slice_info == rhs.download_slice_info; |
} |