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

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

Issue 2634663002: Add WalletCardClass to WalletMaskedCreditCard (Closed)
Patch Set: Add WalletCardClass to proto_enum_conversions files Created 3 years, 11 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 5a2dff163375de082a9dc7fb8772b869e80b373a..fc9edb73fbe5a612cf5a5f2c304e1deb32ab2869 100644
--- a/components/sync/protocol/proto_enum_conversions.cc
+++ b/components/sync/protocol/proto_enum_conversions.cc
@@ -250,6 +250,18 @@ const char* ProtoEnumToString(
return "";
}
+const char* ProtoEnumToString(
+ sync_pb::WalletMaskedCreditCard::WalletCardClass wallet_card_class) {
+ switch (wallet_card_class) {
+ ENUM_CASE(sync_pb::WalletMaskedCreditCard, UNKNOWN_CARD_CLASS);
+ ENUM_CASE(sync_pb::WalletMaskedCreditCard, CREDIT);
+ ENUM_CASE(sync_pb::WalletMaskedCreditCard, DEBIT);
+ ENUM_CASE(sync_pb::WalletMaskedCreditCard, PREPAID);
+ }
+ NOTREACHED();
+ return "";
+}
+
const char* ProtoEnumToString(sync_pb::SyncEnums::DeviceType device_type) {
ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, DeviceType, TYPE_WIN, TYPE_TABLET);
switch (device_type) {
« 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