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

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

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
« no previous file with comments | « components/sync/protocol/proto_enum_conversions.h ('k') | components/sync/protocol/proto_visitors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/protocol/proto_enum_conversions.cc
diff --git a/components/sync/protocol/proto_enum_conversions.cc b/components/sync/protocol/proto_enum_conversions.cc
index 1f0f4826bd63da92571513d3bf02f12bea897da2..8824edfbae4530a5d5e38d5384bd3aa345f42cc9 100644
--- a/components/sync/protocol/proto_enum_conversions.cc
+++ b/components/sync/protocol/proto_enum_conversions.cc
@@ -294,6 +294,23 @@ const char* ProtoEnumToString(sync_pb::TabNavigation::PasswordState state) {
return "";
}
+const char* ProtoEnumToString(sync_pb::Translation::Interaction interaction) {
+ ASSERT_ENUM_BOUNDS(sync_pb::Translation, Interaction, UNKNOWN,
+ AUTOMATIC_TRANSLATION);
+ switch (interaction) {
+ ENUM_CASE(sync_pb::Translation, UNKNOWN);
+ ENUM_CASE(sync_pb::Translation, ACCEPT);
+ ENUM_CASE(sync_pb::Translation, DECLINE);
+ ENUM_CASE(sync_pb::Translation, IGNORED);
+ ENUM_CASE(sync_pb::Translation, DISMISSED);
+ ENUM_CASE(sync_pb::Translation, MANUAL);
+ ENUM_CASE(sync_pb::Translation, TRANSLATION_REVERTED);
+ ENUM_CASE(sync_pb::Translation, AUTOMATIC_TRANSLATION);
+ }
+ NOTREACHED();
+ return "";
+}
+
const char* ProtoEnumToString(
sync_pb::WalletMaskedCreditCard::WalletCardClass wallet_card_class) {
switch (wallet_card_class) {
« no previous file with comments | « components/sync/protocol/proto_enum_conversions.h ('k') | components/sync/protocol/proto_visitors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698