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

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

Issue 2938813003: [Sync] Nest UserEvent message classes within UserEventSpecifics. (Closed)
Patch Set: Rebase Created 3 years, 6 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 4a73e9538d0e702a8cdcc3c71b4631f80c63b3e8..0b47f202e743a8f55da052afc7213b836855b772 100644
--- a/components/sync/protocol/proto_enum_conversions.cc
+++ b/components/sync/protocol/proto_enum_conversions.cc
@@ -294,19 +294,22 @@ 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,
- AUTO_TRANSLATION_BY_LINK);
+const char* ProtoEnumToString(
+ sync_pb::UserEventSpecifics::Translation::Interaction interaction) {
+ ASSERT_ENUM_BOUNDS(sync_pb::UserEventSpecifics::Translation, Interaction,
+ UNKNOWN, AUTO_TRANSLATION_BY_LINK);
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, AUTO_TRANSLATION_BY_PREF);
- ENUM_CASE(sync_pb::Translation, AUTO_TRANSLATION_BY_LINK);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, UNKNOWN);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, ACCEPT);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, DECLINE);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, IGNORED);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, DISMISSED);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, MANUAL);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation, TRANSLATION_REVERTED);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation,
+ AUTO_TRANSLATION_BY_PREF);
+ ENUM_CASE(sync_pb::UserEventSpecifics::Translation,
+ AUTO_TRANSLATION_BY_LINK);
}
NOTREACHED();
return "";
« 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