Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Unified Diff: components/offline_items_collection/core/offline_item.cc

Issue 2771803004: Glue OfflineContentProvider to the download service (Closed)
Patch Set: Fixing test failure Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/offline_items_collection/core/offline_item.cc
diff --git a/components/offline_items_collection/core/offline_item.cc b/components/offline_items_collection/core/offline_item.cc
index 4d4e03b8bc9a15f5869bccaca53b2732a095ff4a..9506bcf7f8d010103ee16f2b1c02a1a50c5686d8 100644
--- a/components/offline_items_collection/core/offline_item.cc
+++ b/components/offline_items_collection/core/offline_item.cc
@@ -28,11 +28,14 @@ bool ContentId::operator<(const ContentId& content_id) const {
OfflineItem::OfflineItem()
: filter(OfflineItemFilter::FILTER_OTHER),
+ is_transient(false),
total_size_bytes(0),
externally_removed(false),
+ is_openable(false),
is_off_the_record(false),
state(OfflineItemState::COMPLETE),
is_resumable(false),
+ allow_metered(false),
received_bytes(0),
percent_completed(0),
time_remaining_ms(0) {}
@@ -49,15 +52,18 @@ bool OfflineItem::operator==(const OfflineItem& offline_item) const {
return id == offline_item.id && title == offline_item.title &&
description == offline_item.description &&
filter == offline_item.filter &&
+ is_transient == offline_item.is_transient &&
total_size_bytes == offline_item.total_size_bytes &&
externally_removed == offline_item.externally_removed &&
creation_time == offline_item.creation_time &&
last_accessed_time == offline_item.last_accessed_time &&
+ is_openable == offline_item.is_openable &&
page_url == offline_item.page_url &&
original_url == offline_item.original_url &&
is_off_the_record == offline_item.is_off_the_record &&
state == offline_item.state &&
is_resumable == offline_item.is_resumable &&
+ allow_metered == offline_item.allow_metered &&
received_bytes == offline_item.received_bytes &&
percent_completed == offline_item.percent_completed &&
time_remaining_ms == offline_item.time_remaining_ms;
« no previous file with comments | « components/offline_items_collection/core/offline_item.h ('k') | components/offline_items_collection/core/offline_item_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698