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

Unified Diff: sync/syncable/entry.cc

Issue 211523002: Add AttachmentMetadata to Sync's EntryKernel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot about using META_PROTO_TIMES_VALS in the test. Created 6 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 | « sync/syncable/entry.h ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/entry.cc
diff --git a/sync/syncable/entry.cc b/sync/syncable/entry.cc
index 852c33e32edee914422dfbf8c4d1d6c5e138df13..2be2aad687fdf56dee9baf125420868446780be7 100644
--- a/sync/syncable/entry.cc
+++ b/sync/syncable/entry.cc
@@ -157,6 +157,13 @@ std::ostream& operator<<(std::ostream& os, const Entry& entry) {
<< kernel->ref(static_cast<UniquePositionField>(i)).ToDebugString()
<< ", ";
}
+ for ( ; i < ATTACHMENT_METADATA_FIELDS_END; ++i) {
+ std::string escaped_str = base::EscapeBytesAsInvalidJSONString(
+ kernel->ref(static_cast<AttachmentMetadataField>(i))
+ .SerializeAsString(),
+ false);
+ os << g_metas_columns[i].name << ": " << escaped_str << ", ";
+ }
os << "TempFlags: ";
for ( ; i < BIT_TEMPS_END; ++i) {
if (kernel->ref(static_cast<BitTemp>(i)))
« no previous file with comments | « sync/syncable/entry.h ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698