OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "modules/payments/ShippingAddress.h" | |
6 | |
7 namespace blink { | |
8 | |
9 ShippingAddress::ShippingAddress(mojom::blink::ShippingAddressPtr address) | |
10 : m_regionCode(address->region_code) | |
11 , m_addressLine(address->address_line.PassStorage()) | |
12 , m_administrativeArea(address->administrative_area) | |
13 , m_locality(address->locality) | |
14 , m_dependentLocality(address->dependent_locality) | |
15 , m_postalCode(address->postal_code) | |
16 , m_sortingCode(address->sorting_code) | |
17 , m_languageCode(address->language_code) | |
18 , m_organization(address->organization) | |
19 , m_recipient(address->recipient) | |
20 { | |
21 if (!m_languageCode.isEmpty() && !address->script_code.isEmpty()) { | |
22 m_languageCode.append("-"); | |
23 m_languageCode.append(address->script_code); | |
24 } | |
25 } | |
26 | |
27 ShippingAddress::~ShippingAddress() {} | |
28 | |
29 } // namespace blink | |
OLD | NEW |