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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java

Issue 2158763002: Revert of [Payments] Add ability to bold parts of addresses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@payments_continuing
Patch Set: Created 4 years, 5 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 package org.chromium.chrome.browser.payments; 5 package org.chromium.chrome.browser.payments;
6 6
7 import android.text.TextUtils; 7 import android.text.TextUtils;
8 import android.util.JsonWriter; 8 import android.util.JsonWriter;
9 9
10 import org.chromium.chrome.browser.autofill.PersonalDataManager; 10 import org.chromium.chrome.browser.autofill.PersonalDataManager;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 public void completeInstrument(CreditCard card, AutofillProfile billingAddre ss) { 153 public void completeInstrument(CreditCard card, AutofillProfile billingAddre ss) {
154 assert card != null; 154 assert card != null;
155 assert billingAddress != null; 155 assert billingAddress != null;
156 assert card.getBillingAddressId() != null; 156 assert card.getBillingAddressId() != null;
157 assert card.getBillingAddressId().equals(billingAddress.getGUID()); 157 assert card.getBillingAddressId().equals(billingAddress.getGUID());
158 158
159 mCard = card; 159 mCard = card;
160 mBillingAddress = billingAddress; 160 mBillingAddress = billingAddress;
161 mIsComplete = true; 161 mIsComplete = true;
162 updateIdentifierLabelsAndIcon(card.getGUID(), card.getObfuscatedNumber() , card.getName(), 162 updateIdentifierLabelsAndIcon(card.getGUID(), card.getObfuscatedNumber() , card.getName(),
163 null, card.getIssuerIconDrawableId()); 163 card.getIssuerIconDrawableId());
164 } 164 }
165 165
166 /** @return The credit card represented by this payment instrument. */ 166 /** @return The credit card represented by this payment instrument. */
167 public CreditCard getCard() { 167 public CreditCard getCard() {
168 return mCard; 168 return mCard;
169 } 169 }
170 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698