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) { |