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

Unified Diff: chrome/browser/sync/syncable/syncable.cc

Issue 1161006: Make it clear what last_sync_timestamp actually tracks. Update (Closed)
Patch Set: Undo accidental patch-juggling mistake. Created 10 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
« no previous file with comments | « chrome/browser/sync/syncable/syncable.h ('k') | chrome/browser/sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable.cc
diff --git a/chrome/browser/sync/syncable/syncable.cc b/chrome/browser/sync/syncable/syncable.cc
index 038f5c83e08e4d7f54f3f5a6875922be565b11f2..08a7bf5f4028e6745043a78e8fb3d3c6f08b7ecd 100644
--- a/chrome/browser/sync/syncable/syncable.cc
+++ b/chrome/browser/sync/syncable/syncable.cc
@@ -630,16 +630,16 @@ void Directory::HandleSaveChangesFailure(const SaveChangesSnapshot& snapshot) {
}
}
-int64 Directory::last_sync_timestamp() const {
+int64 Directory::last_download_timestamp() const {
ScopedKernelLock lock(this);
- return kernel_->persisted_info.last_sync_timestamp;
+ return kernel_->persisted_info.last_download_timestamp;
}
-void Directory::set_last_sync_timestamp(int64 timestamp) {
+void Directory::set_last_download_timestamp(int64 timestamp) {
ScopedKernelLock lock(this);
- if (kernel_->persisted_info.last_sync_timestamp == timestamp)
+ if (kernel_->persisted_info.last_download_timestamp == timestamp)
return;
- kernel_->persisted_info.last_sync_timestamp = timestamp;
+ kernel_->persisted_info.last_download_timestamp = timestamp;
kernel_->info_status = KERNEL_SHARE_INFO_DIRTY;
}
« no previous file with comments | « chrome/browser/sync/syncable/syncable.h ('k') | chrome/browser/sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698