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

Unified Diff: sync/syncable/model_neutral_mutable_entry.cc

Issue 393083004: Update Commit and GetUpdatesResponse messages to include attachment ids. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update SyncManagerImpl to detect attachment metadata changes. Created 6 years, 5 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 | « sync/syncable/model_neutral_mutable_entry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_neutral_mutable_entry.cc
diff --git a/sync/syncable/model_neutral_mutable_entry.cc b/sync/syncable/model_neutral_mutable_entry.cc
index 2ae54507fe0a2960056c895314c8d4f4930482d4..c7f1e3d6da598dfddf05351dc8d6837c7c01c9a7 100644
--- a/sync/syncable/model_neutral_mutable_entry.cc
+++ b/sync/syncable/model_neutral_mutable_entry.cc
@@ -353,6 +353,18 @@ void ModelNeutralMutableEntry::PutServerUniquePosition(
}
}
+void ModelNeutralMutableEntry::PutServerAttachmentMetadata(
+ const sync_pb::AttachmentMetadata& value) {
+ DCHECK(kernel_);
+ base_write_transaction_->TrackChangesTo(kernel_);
+
+ if (kernel_->ref(SERVER_ATTACHMENT_METADATA).SerializeAsString() !=
+ value.SerializeAsString()) {
+ kernel_->put(SERVER_ATTACHMENT_METADATA, value);
+ kernel_->mark_dirty(&dir()->kernel_->dirty_metahandles);
+ }
+}
+
void ModelNeutralMutableEntry::PutSyncing(bool value) {
kernel_->put(SYNCING, value);
}
« no previous file with comments | « sync/syncable/model_neutral_mutable_entry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698