diff options
Diffstat (limited to 'sync/protocol/proto_enum_conversions.cc')
-rw-r--r-- | sync/protocol/proto_enum_conversions.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sync/protocol/proto_enum_conversions.cc b/sync/protocol/proto_enum_conversions.cc index 9b7e7a4..bafe31e 100644 --- a/sync/protocol/proto_enum_conversions.cc +++ b/sync/protocol/proto_enum_conversions.cc @@ -214,6 +214,18 @@ const char* GetWalletInfoTypeString( return ""; } +const char* GetWalletMetadataTypeString( + sync_pb::WalletMetadataSpecifics::Type wallet_metadata_type) { + ASSERT_ENUM_BOUNDS(sync_pb::WalletMetadataSpecifics, Type, UNKNOWN, ADDRESS); + switch (wallet_metadata_type) { + ENUM_CASE(sync_pb::WalletMetadataSpecifics, UNKNOWN); + ENUM_CASE(sync_pb::WalletMetadataSpecifics, CARD); + ENUM_CASE(sync_pb::WalletMetadataSpecifics, ADDRESS); + } + NOTREACHED(); + return ""; +} + const char* GetWalletCardStatusString( sync_pb::WalletMaskedCreditCard::WalletCardStatus wallet_card_status) { switch (wallet_card_status) { |