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

Unified Diff: sync/internal_api/write_node.cc

Issue 247983002: Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FakeAttachmentService::StoreAttachments now calls AttachmentStore::Write. Created 6 years, 8 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: sync/internal_api/write_node.cc
diff --git a/sync/internal_api/write_node.cc b/sync/internal_api/write_node.cc
index 6a634eb85c970a93f3b5d00400a7e5d267d2dfe0..c3ef0815a86213ecffe1e9df6034de602bc89471 100644
--- a/sync/internal_api/write_node.cc
+++ b/sync/internal_api/write_node.cc
@@ -464,6 +464,11 @@ bool WriteNode::SetPosition(const BaseNode& new_parent,
return PutPredecessor(predecessor);
}
+void WriteNode::SetAttachmentMetadata(
+ const sync_pb::AttachmentMetadata& attachment_metadata) {
+ entry_->PutAttachmentMetadata(attachment_metadata);
+}
+
const syncable::Entry* WriteNode::GetEntry() const {
return entry_;
}

Powered by Google App Engine
This is Rietveld 408576698