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

Unified Diff: components/sync/protocol/proto_visitors.h

Issue 2911603002: Initial translation event proto. (Closed)
Patch Set: update fields. Created 3 years, 7 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_visitors.h
diff --git a/components/sync/protocol/proto_visitors.h b/components/sync/protocol/proto_visitors.h
index e035e0584b9471b3cc90a97bed84faac9be8ff69..08575749cce9ae0ef76f92a252bdbb0f18cc710f 100644
--- a/components/sync/protocol/proto_visitors.h
+++ b/components/sync/protocol/proto_visitors.h
@@ -847,6 +847,12 @@ VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) {
VISIT(end_time_usec);
}
+VISIT_PROTO_FIELDS(const sync_pb::Translation& proto) {
+ VISIT(from_language_code);
+ VISIT(to_language_code);
+ VISIT_ENUM(interaction);
+}
+
VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) {
VISIT(data_type_id);
VISIT(has_valid_hint);
@@ -873,6 +879,7 @@ VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) {
VISIT(session_id);
VISIT(field_trial_event);
VISIT(language_detection);
+ VISIT(translation);
}
VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) {
« no previous file with comments | « components/sync/protocol/proto_enum_conversions.cc ('k') | components/sync/protocol/user_event_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698