Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentAddress.cpp

Issue 2020913002: PaymentRequest: Rename ShippingAddress to PaymentAddress. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/PaymentAddress.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 ShippingAddress::ShippingAddress(mojom::blink::ShippingAddressPtr address) 9 PaymentAddress::PaymentAddress(mojom::blink::PaymentAddressPtr 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 PaymentAddress::~PaymentAddress() {}
28 28
29 } // namespace blink 29 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698