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

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

Issue 2515853002: [Payments] Fix new billing address label. (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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/AddressEditor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java
index 784ec6ff8cd691225b92069a54d4fcfb1dcb623f..96e9f2b72b513071eac5a60730fb07ae05add0cd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java
@@ -217,14 +217,8 @@ public class AddressEditor extends EditorBase<AutofillAddress> {
}
}
- // Calculate the label for this profile. The label's format depends on the country and
- // language code for the profile.
- PersonalDataManager pdm = PersonalDataManager.getInstance();
- // TODO(crbug.com/666048): New billing address label is wrong.
- profile.setLabel(pdm.getAddressLabelForPaymentRequest(profile));
-
// Save the edited autofill profile.
- profile.setGUID(pdm.setProfile(profile));
+ profile.setGUID(PersonalDataManager.getInstance().setProfile(profile));
}
/** Writes the given value into the specified autofill profile field. */

Powered by Google App Engine
This is Rietveld 408576698