| Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
|
| index 31a3400411597d906e34c21b7587ad3433d1a912..c92171ed614c1b9cac3a1d88aab9c0095a84f1c3 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillDialogGlue.java
|
| @@ -23,7 +23,7 @@ public class AutofillDialogGlue implements AutofillDialogDelegate {
|
| public AutofillDialogGlue(int nativeAutofillDialogViewAndroid, NativeWindow nativeWindow) {
|
| mNativeDialogPopup = nativeAutofillDialogViewAndroid;
|
|
|
| - mAutofillDialog = new AutofillDialog(nativeWindow.getContext());
|
| + mAutofillDialog = new AutofillDialog(nativeWindow.getContext(), this);
|
| mAutofillDialog.show();
|
| }
|
|
|
| @@ -45,6 +45,23 @@ public class AutofillDialogGlue implements AutofillDialogDelegate {
|
| mAutofillDialog.updateSection(section, visible, dialogInputs, menuItems);
|
| }
|
|
|
| + /**
|
| + * Notifies the dialog that the underlying model is changed and all sections will be updated.
|
| + * @param fetchingIsActive If true, the data is being fetched and is not yet available.
|
| + */
|
| + private void modelChanged(boolean fetchingIsActive) {
|
| + mAutofillDialog.modelChanged(fetchingIsActive);
|
| + }
|
| +
|
| + /**
|
| + * Updates the account chooser of Autofill dialog.
|
| + * @param accountNames List of accounts to be shown.
|
| + * @param selectedAccountIndex Index of the currently selected account.
|
| + */
|
| + private void updateAccountChooser(String[] accountNames, int selectedAccountIndex) {
|
| + mAutofillDialog.updateAccountChooserAndAddTitle(accountNames, selectedAccountIndex);
|
| + }
|
| +
|
| @CalledByNative
|
| private AutofillDialogField[] getSection(int section) {
|
| return mAutofillDialog.getSection(section);
|
|
|