OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "modules/payments/PaymentAddress.h" | 5 #include "modules/payments/PaymentAddress.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 PaymentAddress::PaymentAddress(mojom::blink::PaymentAddressPtr address) | 9 PaymentAddress::PaymentAddress(mojom::blink::PaymentAddressPtr address) |
10 : m_regionCode(address->region_code) | 10 : m_country(address->country) |
11 , m_addressLine(address->address_line.PassStorage()) | 11 , m_addressLine(address->address_line.PassStorage()) |
12 , m_administrativeArea(address->administrative_area) | 12 , m_region(address->region) |
13 , m_locality(address->locality) | 13 , m_city(address->city) |
14 , m_dependentLocality(address->dependent_locality) | 14 , m_dependentLocality(address->dependent_locality) |
15 , m_postalCode(address->postal_code) | 15 , m_postalCode(address->postal_code) |
16 , m_sortingCode(address->sorting_code) | 16 , m_sortingCode(address->sorting_code) |
17 , m_languageCode(address->language_code) | 17 , m_languageCode(address->language_code) |
18 , m_organization(address->organization) | 18 , m_organization(address->organization) |
19 , m_recipient(address->recipient) | 19 , m_recipient(address->recipient) |
| 20 , m_careOf(address->careOf) |
| 21 , m_phone(address->phone) |
20 { | 22 { |
21 if (!m_languageCode.isEmpty() && !address->script_code.isEmpty()) { | 23 if (!m_languageCode.isEmpty() && !address->script_code.isEmpty()) { |
22 m_languageCode.append("-"); | 24 m_languageCode.append("-"); |
23 m_languageCode.append(address->script_code); | 25 m_languageCode.append(address->script_code); |
24 } | 26 } |
25 } | 27 } |
26 | 28 |
27 PaymentAddress::~PaymentAddress() {} | 29 PaymentAddress::~PaymentAddress() {} |
28 | 30 |
29 } // namespace blink | 31 } // namespace blink |
OLD | NEW |