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

Unified Diff: components/offline_pages/offline_page_item.cc

Issue 1345043002: Update access info when an offline page is being visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more fixes Created 5 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 4e4d69728833408195875292fb334de3c284e606..a017f7bee26e4bbc041042065da3086b51e79f6c 100644
--- a/components/offline_pages/offline_page_item.cc
+++ b/components/offline_pages/offline_page_item.cc
@@ -14,7 +14,8 @@ const int kCurrentVersion = 1;
OfflinePageItem::OfflinePageItem()
: version(kCurrentVersion),
- file_size(0) {
+ file_size(0),
+ access_count(0) {
}
OfflinePageItem::OfflinePageItem(const GURL& url,
@@ -25,7 +26,8 @@ OfflinePageItem::OfflinePageItem(const GURL& url,
bookmark_id(bookmark_id),
version(kCurrentVersion),
file_path(file_path),
- file_size(file_size) {
+ file_size(file_size),
+ access_count(0) {
}
OfflinePageItem::OfflinePageItem(const GURL& url,
@@ -39,7 +41,8 @@ OfflinePageItem::OfflinePageItem(const GURL& url,
file_path(file_path),
file_size(file_size),
creation_time(creation_time),
- last_access_time(creation_time) {
+ last_access_time(creation_time),
+ access_count(0) {
}
OfflinePageItem::~OfflinePageItem() {
« no previous file with comments | « components/offline_pages/offline_page_item.h ('k') | components/offline_pages/offline_page_metadata_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698