Index: sync/engine/syncer_util.cc |
diff --git a/sync/engine/syncer_util.cc b/sync/engine/syncer_util.cc |
index c7d93c19d040d1a4f98bf890e49fe8c46244e17e..3cb9bcaf7ec4670de7a4aedadf97765999a09bd0 100644 |
--- a/sync/engine/syncer_util.cc |
+++ b/sync/engine/syncer_util.cc |
@@ -17,6 +17,7 @@ |
#include "sync/engine/conflict_resolver.h" |
#include "sync/engine/syncer_proto_util.h" |
#include "sync/engine/syncer_types.h" |
+#include "sync/internal_api/public/base/attachment_id_proto.h" |
#include "sync/internal_api/public/base/model_type.h" |
#include "sync/internal_api/public/base/unique_position.h" |
#include "sync/protocol/bookmark_specifics.pb.h" |
@@ -407,6 +408,8 @@ void UpdateServerFieldsFromUpdate( |
bookmark.bookmark_favicon(), |
target); |
} |
+ target->PutServerAttachmentMetadata( |
+ CreateAttachmentMetadata(update.attachment_id())); |
if (SyncerProtoUtil::ShouldMaintainPosition(update)) { |
UpdateBookmarkPositioning(update, target); |
} |
@@ -463,6 +466,7 @@ void UpdateLocalDataFromServerData( |
entry->PutBaseVersion(entry->GetServerVersion()); |
entry->PutIsDel(entry->GetServerIsDel()); |
entry->PutIsUnappliedUpdate(false); |
+ entry->PutAttachmentMetadata(entry->GetServerAttachmentMetadata()); |
} |
VerifyCommitResult ValidateCommitEntry(syncable::Entry* entry) { |