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

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

Issue 2875203002: UserEvent proto exploration for Translate use case. (Closed)
Patch Set: Adding proto_visitors.h change. 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 31b343b39645d0fd515994eb2d5198540686d3d6..9ac274b2b0cf7375f7882681db4d90026d000089 100644
--- a/components/sync/protocol/proto_visitors.h
+++ b/components/sync/protocol/proto_visitors.h
@@ -827,6 +827,20 @@ VISIT_PROTO_FIELDS(const sync_pb::TimeRangeDirective& proto) {
VISIT(end_time_usec);
}
+VISIT_PROTO_FIELDS(const sync_pb::TranslateLanguageDetection& proto) {
+ VISIT(detected_language_code);
+ VISIT(probability);
+ VISIT(text_bytes);
+ VISIT(is_reliable);
+ VISIT(final_language_decision);
+}
+
+VISIT_PROTO_FIELDS(const sync_pb::TranslateInteraction& proto) {
+ VISIT(user_set_from_language_code);
+ VISIT(user_set_to_language_code);
+ VISIT_ENUM(interaction);
+}
+
VISIT_PROTO_FIELDS(const sync_pb::TypeHint& proto) {
VISIT(data_type_id);
VISIT(has_valid_hint);
@@ -851,6 +865,8 @@ VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) {
VISIT(event_time_usec);
VISIT(navigation_id);
VISIT(session_id);
+ VISIT(translate_language_detection);
+ VISIT(translate_interaction);
}
VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) {
« no previous file with comments | « components/sync/protocol/proto_memory_estimations.cc ('k') | components/sync/protocol/user_event_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698