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 a833ab0deeb7b6d467d342693ad984c6b0fc7b2c..c1c8228df286d711ca6e71940c53e02e26e24daf 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(); |
} |
@@ -48,6 +48,23 @@ public class AutofillDialogGlue implements AutofillDialogDelegate { |
mAutofillDialog.updateSection(section, visible, dialogInputs, menuItems, selectedMenuItem); |
} |
+ /** |
+ * 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); |