| 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 // Keep this file in sync with the .proto files in this directory. | 5 // Keep this file in sync with the .proto files in this directory. |
| 6 | 6 |
| 7 #include "sync/protocol/proto_value_conversions.h" | 7 #include "sync/protocol/proto_value_conversions.h" |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 std::unique_ptr<base::DictionaryValue> WalletMaskedCreditCardToValue( | 690 std::unique_ptr<base::DictionaryValue> WalletMaskedCreditCardToValue( |
| 691 const sync_pb::WalletMaskedCreditCard& proto) { | 691 const sync_pb::WalletMaskedCreditCard& proto) { |
| 692 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); | 692 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
| 693 SET_STR(id); | 693 SET_STR(id); |
| 694 SET_ENUM(status, GetWalletCardStatusString); | 694 SET_ENUM(status, GetWalletCardStatusString); |
| 695 SET_STR(name_on_card); | 695 SET_STR(name_on_card); |
| 696 SET_ENUM(type, GetWalletCardTypeString); | 696 SET_ENUM(type, GetWalletCardTypeString); |
| 697 SET_STR(last_four); | 697 SET_STR(last_four); |
| 698 SET_INT32(exp_month); | 698 SET_INT32(exp_month); |
| 699 SET_INT32(exp_year); | 699 SET_INT32(exp_year); |
| 700 SET_STR(billing_address_id); |
| 700 return value; | 701 return value; |
| 701 } | 702 } |
| 702 | 703 |
| 703 std::unique_ptr<base::DictionaryValue> WalletPostalAddressToValue( | 704 std::unique_ptr<base::DictionaryValue> WalletPostalAddressToValue( |
| 704 const sync_pb::WalletPostalAddress& proto) { | 705 const sync_pb::WalletPostalAddress& proto) { |
| 705 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); | 706 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
| 707 SET_STR(id); |
| 706 SET_STR(recipient_name); | 708 SET_STR(recipient_name); |
| 707 SET_STR(company_name); | 709 SET_STR(company_name); |
| 708 SET_STR_REP(street_address); | 710 SET_STR_REP(street_address); |
| 709 SET_STR(address_1); | 711 SET_STR(address_1); |
| 710 SET_STR(address_2); | 712 SET_STR(address_2); |
| 711 SET_STR(address_3); | 713 SET_STR(address_3); |
| 712 SET_STR(address_4); | 714 SET_STR(address_4); |
| 713 SET_STR(postal_code); | 715 SET_STR(postal_code); |
| 714 SET_STR(sorting_code); | 716 SET_STR(sorting_code); |
| 715 SET_STR(country_code); | 717 SET_STR(country_code); |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 #undef SET_BYTES | 1079 #undef SET_BYTES |
| 1078 #undef SET_INT32 | 1080 #undef SET_INT32 |
| 1079 #undef SET_INT64 | 1081 #undef SET_INT64 |
| 1080 #undef SET_INT64_REP | 1082 #undef SET_INT64_REP |
| 1081 #undef SET_STR | 1083 #undef SET_STR |
| 1082 #undef SET_STR_REP | 1084 #undef SET_STR_REP |
| 1083 | 1085 |
| 1084 #undef SET_FIELD | 1086 #undef SET_FIELD |
| 1085 | 1087 |
| 1086 } // namespace syncer | 1088 } // namespace syncer |
| OLD | NEW |