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

Unified Diff: sync/internal_api/syncapi_internal.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/internal_api/syncapi_internal.h ('k') | sync/internal_api/test/test_entry_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/syncapi_internal.cc
diff --git a/sync/internal_api/syncapi_internal.cc b/sync/internal_api/syncapi_internal.cc
index d297fcba6cc3a0f6a2f3e2f6c81c99280bb63b8c..91a6d79fd1b47417ec7a788df4a23258b3f57868 100644
--- a/sync/internal_api/syncapi_internal.cc
+++ b/sync/internal_api/syncapi_internal.cc
@@ -5,6 +5,7 @@
#include "sync/internal_api/syncapi_internal.h"
#include "base/memory/scoped_ptr.h"
+#include "sync/protocol/attachments.pb.h"
#include "sync/protocol/password_specifics.pb.h"
#include "sync/protocol/sync.pb.h"
#include "sync/util/cryptographer.h"
@@ -104,4 +105,12 @@ bool AreSpecificsEqual(const Cryptographer* cryptographer,
return false;
}
+bool AreAttachmentMetadataEqual(const sync_pb::AttachmentMetadata& left,
+ const sync_pb::AttachmentMetadata& right) {
+ if (left.SerializeAsString() == right.SerializeAsString()) {
+ return true;
+ }
+ return false;
+}
+
} // namespace syncer
« no previous file with comments | « sync/internal_api/syncapi_internal.h ('k') | sync/internal_api/test/test_entry_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698