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

Unified Diff: components/sync/protocol/proto_value_conversions.cc

Issue 2319973003: [USS] Implement SharedModelTypeProcessor::GetAllNodes for USS (Closed)
Patch Set: change structure of the info a little bit Created 4 years, 3 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: components/sync/protocol/proto_value_conversions.cc
diff --git a/components/sync/protocol/proto_value_conversions.cc b/components/sync/protocol/proto_value_conversions.cc
index 1397db8c44cb38528c8e65f9794e899606cd3578..0843275c3c2b83ea080448f1bfabbd654a6572a5 100644
--- a/components/sync/protocol/proto_value_conversions.cc
+++ b/components/sync/protocol/proto_value_conversions.cc
@@ -29,6 +29,7 @@
#include "components/sync/protocol/bookmark_specifics.pb.h"
#include "components/sync/protocol/dictionary_specifics.pb.h"
#include "components/sync/protocol/encryption.pb.h"
+#include "components/sync/protocol/entity_metadata.pb.h"
#include "components/sync/protocol/experiments_specifics.pb.h"
#include "components/sync/protocol/extension_setting_specifics.pb.h"
#include "components/sync/protocol/extension_specifics.pb.h"
@@ -1090,6 +1091,22 @@ std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue(
return value;
}
+std::unique_ptr<base::DictionaryValue> EntityMetadataToValue(
+ const sync_pb::EntityMetadata& proto) {
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ SET_STR(client_tag_hash);
+ SET_STR(server_id);
+ SET_BOOL(is_deleted);
+ SET_INT64(sequence_number);
+ SET_INT64(acked_sequence_number);
+ SET_INT64(server_version);
+ SET_INT64(creation_time);
+ SET_INT64(modification_time);
+ SET_STR(specifics_hash);
+ SET_STR(base_specifics_hash);
+ return value;
+}
+
#undef SET_TYPE
#undef SET
#undef SET_REP
« components/sync/api/entity_data.cc ('K') | « components/sync/protocol/proto_value_conversions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698