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 599ce7b352d9217a26e254b0acfba636df203db0..1deee21601d0971f8b287c63616633d3391306e5 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 |
@@ -58,15 +58,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. */ |