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

Unified Diff: components/offline_pages/offline_page_item.cc

Issue 2343743002: [Offline pages] Updating the UpdateCallback in OPMStoreSQL (Closed)
Patch Set: Addressing final feedback Created 4 years, 3 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_pages/offline_page_item.cc
diff --git a/components/offline_pages/offline_page_item.cc b/components/offline_pages/offline_page_item.cc
index cd3a5da538d2012c9ec5887edf27c605bfb63d79..dfa9835f9ee3e410bb2107910f7df6a7c30bdcae 100644
--- a/components/offline_pages/offline_page_item.cc
+++ b/components/offline_pages/offline_page_item.cc
@@ -61,6 +61,19 @@ OfflinePageItem::OfflinePageItem(const OfflinePageItem& other) = default;
OfflinePageItem::~OfflinePageItem() {
}
+bool OfflinePageItem::operator==(const OfflinePageItem& other) const {
+ return url == other.url &&
+ offline_id == other.offline_id &&
+ client_id == other.client_id &&
+ file_path == other.file_path &&
+ creation_time == other.creation_time &&
+ last_access_time == other.last_access_time &&
+ expiration_time == other.expiration_time &&
+ access_count == other.access_count &&
+ title == other.title &&
+ flags == other.flags;
+}
+
GURL OfflinePageItem::GetOfflineURL() const {
return net::FilePathToFileURL(file_path);
}

Powered by Google App Engine
This is Rietveld 408576698