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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java

Issue 2163693002: [Merge M-53] Credit card editor for PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java
index 5e390249b8d8e644d5124ea1fa9cc3a3a5ec87b2..391a525f8b45341985de3ddaa836966e519ddc7c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillAddress.java
@@ -52,15 +52,14 @@ public class AutofillAddress extends PaymentOption {
/**
* Updates the address and marks it "complete." Called after the user has edited this address.
- * Updates the label and sublabel.
+ * Updates the identifier, label, and sublabel.
*
- * @param profile The new profile to use. The GUID should not change.
+ * @param profile The new profile to use.
*/
public void completeAddress(AutofillProfile profile) {
- assert profile.getGUID().equals(mProfile.getGUID());
mProfile = profile;
mIsComplete = true;
- updateLabels(mProfile.getFullName(), mProfile.getLabel());
+ updateIdentifierAndLabels(mProfile.getGUID(), mProfile.getFullName(), mProfile.getLabel());
}
/** @return The country code to use, e.g., when constructing an editor for this address. */

Powered by Google App Engine
This is Rietveld 408576698