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

Unified Diff: sync/protocol/proto_enum_conversions.cc

Issue 1140653006: [sync] Add WalletMetadataSpecifics protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work Created 5 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 | « sync/protocol/proto_enum_conversions.h ('k') | sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_enum_conversions.cc
diff --git a/sync/protocol/proto_enum_conversions.cc b/sync/protocol/proto_enum_conversions.cc
index 9b7e7a4d7c9769ad6f33b6e8cf5ea6b0b8d14e9d..bafe31eb3d126e6e4f9fc29bd2f82b8e43c3a35e 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) {
« no previous file with comments | « sync/protocol/proto_enum_conversions.h ('k') | sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698