| 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/ShippingAddress.h" |   5 #include "modules/payments/ShippingAddress.h" | 
|   6  |   6  | 
|   7 namespace blink { |   7 namespace blink { | 
|   8  |   8  | 
|   9 ShippingAddress::ShippingAddress(mojom::wtf::ShippingAddressPtr address) |   9 ShippingAddress::ShippingAddress(mojom::blink::ShippingAddressPtr address) | 
|  10     : m_regionCode(address->region_code) |  10     : m_regionCode(address->region_code) | 
|  11     , m_addressLine(address->address_line.PassStorage()) |  11     , m_addressLine(address->address_line.PassStorage()) | 
|  12     , m_administrativeArea(address->administrative_area) |  12     , m_administrativeArea(address->administrative_area) | 
|  13     , m_locality(address->locality) |  13     , m_locality(address->locality) | 
|  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 { |  20 { | 
|  21     if (!m_languageCode.isEmpty() && !address->script_code.isEmpty()) { |  21     if (!m_languageCode.isEmpty() && !address->script_code.isEmpty()) { | 
|  22         m_languageCode.append("-"); |  22         m_languageCode.append("-"); | 
|  23         m_languageCode.append(address->script_code); |  23         m_languageCode.append(address->script_code); | 
|  24     } |  24     } | 
|  25 } |  25 } | 
|  26  |  26  | 
|  27 ShippingAddress::~ShippingAddress() {} |  27 ShippingAddress::~ShippingAddress() {} | 
|  28  |  28  | 
|  29 } // namespace blink |  29 } // namespace blink | 
| OLD | NEW |