Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/protocol/proto_enum_conversions.h" | 5 #include "components/sync/protocol/proto_enum_conversions.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace syncer { | 9 namespace syncer { |
| 10 | 10 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 238 switch (wallet_card_type) { | 238 switch (wallet_card_type) { |
| 239 ENUM_CASE(sync_pb::WalletMaskedCreditCard, UNKNOWN); | 239 ENUM_CASE(sync_pb::WalletMaskedCreditCard, UNKNOWN); |
| 240 ENUM_CASE(sync_pb::WalletMaskedCreditCard, AMEX); | 240 ENUM_CASE(sync_pb::WalletMaskedCreditCard, AMEX); |
| 241 ENUM_CASE(sync_pb::WalletMaskedCreditCard, DISCOVER); | 241 ENUM_CASE(sync_pb::WalletMaskedCreditCard, DISCOVER); |
| 242 ENUM_CASE(sync_pb::WalletMaskedCreditCard, JCB); | 242 ENUM_CASE(sync_pb::WalletMaskedCreditCard, JCB); |
| 243 ENUM_CASE(sync_pb::WalletMaskedCreditCard, MAESTRO); | 243 ENUM_CASE(sync_pb::WalletMaskedCreditCard, MAESTRO); |
| 244 ENUM_CASE(sync_pb::WalletMaskedCreditCard, MASTER_CARD); | 244 ENUM_CASE(sync_pb::WalletMaskedCreditCard, MASTER_CARD); |
| 245 ENUM_CASE(sync_pb::WalletMaskedCreditCard, SOLO); | 245 ENUM_CASE(sync_pb::WalletMaskedCreditCard, SOLO); |
| 246 ENUM_CASE(sync_pb::WalletMaskedCreditCard, SWITCH); | 246 ENUM_CASE(sync_pb::WalletMaskedCreditCard, SWITCH); |
| 247 ENUM_CASE(sync_pb::WalletMaskedCreditCard, VISA); | 247 ENUM_CASE(sync_pb::WalletMaskedCreditCard, VISA); |
| 248 ENUM_CASE(sync_pb::WalletMaskedCreditCard, MIR); | |
|
please use gerrit instead
2016/11/18 10:34:21
No need to modify anything sync server related.
| |
| 248 } | 249 } |
| 249 NOTREACHED(); | 250 NOTREACHED(); |
| 250 return ""; | 251 return ""; |
| 251 } | 252 } |
| 252 | 253 |
| 253 const char* ProtoEnumToString(sync_pb::SyncEnums::DeviceType device_type) { | 254 const char* ProtoEnumToString(sync_pb::SyncEnums::DeviceType device_type) { |
| 254 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, DeviceType, TYPE_WIN, TYPE_TABLET); | 255 ASSERT_ENUM_BOUNDS(sync_pb::SyncEnums, DeviceType, TYPE_WIN, TYPE_TABLET); |
| 255 switch (device_type) { | 256 switch (device_type) { |
| 256 ENUM_CASE(sync_pb::SyncEnums, TYPE_WIN); | 257 ENUM_CASE(sync_pb::SyncEnums, TYPE_WIN); |
| 257 ENUM_CASE(sync_pb::SyncEnums, TYPE_MAC); | 258 ENUM_CASE(sync_pb::SyncEnums, TYPE_MAC); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 341 ENUM_CASE(sync_pb::ReadingListSpecifics, READ); | 342 ENUM_CASE(sync_pb::ReadingListSpecifics, READ); |
| 342 } | 343 } |
| 343 NOTREACHED(); | 344 NOTREACHED(); |
| 344 return ""; | 345 return ""; |
| 345 } | 346 } |
| 346 | 347 |
| 347 #undef ASSERT_ENUM_BOUNDS | 348 #undef ASSERT_ENUM_BOUNDS |
| 348 #undef ENUM_CASE | 349 #undef ENUM_CASE |
| 349 | 350 |
| 350 } // namespace syncer | 351 } // namespace syncer |
| OLD | NEW |