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..d0b3e0fd307259d7084bb7a09fec3430cb040ad5 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,14 @@ 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), |
please use gerrit instead
2016/08/26 16:46:15
This indentation looks funny. Something like this
sebsg
2016/08/26 19:36:45
Done.
|
nativeGetProfileGUIDsToSuggest(mPersonalDataManagerAndroid)); |
} |
@@ -751,7 +757,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, |