diff --git a/sync/protocol/autofill_specifics.proto b/sync/protocol/autofill_specifics.proto index 2b93ecd0d51add..256e9606eb1a0e 100644 --- a/sync/protocol/autofill_specifics.proto +++ b/sync/protocol/autofill_specifics.proto @@ -111,12 +111,14 @@ message WalletMaskedCreditCard { // Four-digit year (e.g. 2017). optional int32 exp_year = 7; + + // The WalletPostalAddress.id of the billing address. + optional string billing_address_id = 8; } // Different than an AutofillProfile because this represents some known address // on the server that is pulled down rather than synced between Chromes. message WalletPostalAddress { - // DEPRECATED optional string id = 1; optional string recipient_name = 12; diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc index 7d7c367e2581d7..46ab0cc261211e 100644 --- a/sync/protocol/proto_value_conversions.cc +++ b/sync/protocol/proto_value_conversions.cc @@ -697,12 +697,14 @@ std::unique_ptr WalletMaskedCreditCardToValue( SET_STR(last_four); SET_INT32(exp_month); SET_INT32(exp_year); + SET_STR(billing_address_id); return value; } std::unique_ptr WalletPostalAddressToValue( const sync_pb::WalletPostalAddress& proto) { std::unique_ptr value(new base::DictionaryValue()); + SET_STR(id); SET_STR(recipient_name); SET_STR(company_name); SET_STR_REP(street_address);