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

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

Issue 997713004: Redo Autofill wallet preferences on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review Created 5 years, 9 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/preferences/autofill/AutofillProfileEditor.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
index aeda56e5904eb52dc820d193d8cd13d8e3a270da..35a2b2f2f6a984155737b8242b887199574dea1d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/autofill/AutofillProfileEditor.java
@@ -270,21 +270,14 @@ public class AutofillProfileEditor extends Fragment implements TextWatcher,
// Read edited data; save in the associated Chrome profile.
// Ignore empty fields.
private void saveProfile() {
- AutofillProfile profile = new PersonalDataManager.AutofillProfile(
- mGUID,
- AutofillPreferences.SETTINGS_ORIGIN,
- getFieldText(AddressField.RECIPIENT),
- getFieldText(AddressField.ORGANIZATION),
- getFieldText(AddressField.STREET_ADDRESS),
- getFieldText(AddressField.ADMIN_AREA),
- getFieldText(AddressField.LOCALITY),
- getFieldText(AddressField.DEPENDENT_LOCALITY),
- getFieldText(AddressField.POSTAL_CODE),
- getFieldText(AddressField.SORTING_CODE),
- mCountryCodes.get(mCurrentCountryPos),
- mPhoneText.getText().toString(),
- mEmailText.getText().toString(),
- mLanguageCodeString);
+ AutofillProfile profile = new PersonalDataManager.AutofillProfile(mGUID,
+ AutofillPreferences.SETTINGS_ORIGIN, true /* isLocal */,
+ getFieldText(AddressField.RECIPIENT), getFieldText(AddressField.ORGANIZATION),
+ getFieldText(AddressField.STREET_ADDRESS), getFieldText(AddressField.ADMIN_AREA),
+ getFieldText(AddressField.LOCALITY), getFieldText(AddressField.DEPENDENT_LOCALITY),
+ getFieldText(AddressField.POSTAL_CODE), getFieldText(AddressField.SORTING_CODE),
+ mCountryCodes.get(mCurrentCountryPos), mPhoneText.getText().toString(),
+ mEmailText.getText().toString(), mLanguageCodeString);
PersonalDataManager.getInstance().setProfile(profile);
}

Powered by Google App Engine
This is Rietveld 408576698