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

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

Issue 2116583002: Credit card editor for PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments in personal_data_manager_android.h 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 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. */

Powered by Google App Engine
This is Rietveld 408576698