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

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

Issue 2039863002: PaymentRequest: Sync up PaymentAddress with the payment request spec. (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/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)
please use gerrit instead 2016/06/06 16:01:15 +careOf +phone
zino 2016/06/06 17:23:16 Done.
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 PaymentAddress::~PaymentAddress() {} 27 PaymentAddress::~PaymentAddress() {}
28 28
29 } // namespace blink 29 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698