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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java

Issue 2287513002: [Payments] Show name and address when selecting a CC billing address. (Closed)
Patch Set: Fixed error Created 4 years, 4 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/autofill/PersonalDataManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java
index 639c8a4074a6775df45682f4e33706f995f3612d..2c0f3063174b26c401e401f0b788f86e0c93d486 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/PersonalDataManager.java
@@ -518,6 +518,8 @@ public class PersonalDataManager {
/**
* Gets the profiles to show in the settings page. Returns all the profiles without any
* processing.
+ *
+ * @return The list of profiles to show in the settings.
*/
public List<AutofillProfile> getProfilesForSettings() {
ThreadUtils.assertOnUiThread();
@@ -529,10 +531,15 @@ public class PersonalDataManager {
/**
* Gets the profiles to suggest when filling a form or completing a transaction. The profiles
* will have been processed to be more relevant to the user.
+ *
+ * @param includeName Whether to include the name in the profile's label.
+ * @return The list of profiles to suggest to the user.
*/
- public List<AutofillProfile> getProfilesToSuggest() {
+ public List<AutofillProfile> getProfilesToSuggest(boolean includeName) {
ThreadUtils.assertOnUiThread();
- return getProfilesWithLabels(nativeGetProfileLabelsToSuggest(mPersonalDataManagerAndroid),
+ return getProfilesWithLabels(
+ nativeGetProfileLabelsToSuggest(
+ mPersonalDataManagerAndroid, includeName),
nativeGetProfileGUIDsToSuggest(mPersonalDataManagerAndroid));
}
@@ -751,7 +758,8 @@ public class PersonalDataManager {
private native String[] nativeGetProfileGUIDsToSuggest(long nativePersonalDataManagerAndroid);
private native String[] nativeGetProfileLabelsForSettings(
long nativePersonalDataManagerAndroid);
- private native String[] nativeGetProfileLabelsToSuggest(long nativePersonalDataManagerAndroid);
+ private native String[] nativeGetProfileLabelsToSuggest(long nativePersonalDataManagerAndroid,
+ boolean includeName);
private native AutofillProfile nativeGetProfileByGUID(long nativePersonalDataManagerAndroid,
String guid);
private native String nativeSetProfile(long nativePersonalDataManagerAndroid,

Powered by Google App Engine
This is Rietveld 408576698