Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
index 60bec1db7112520d1ad9ff553226d5e8faf173f8..3536adaff57f8f003289f36a7dd6fd02ffdb2982 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -449,6 +449,20 @@ class AutofillDialogControllerImpl : public AutofillDialogController, |
// in order to fill |form_structure_| and pass data back to the invoking page. |
void FinishSubmit(); |
+ // Writes to prefs the choice of AutofillDataModel for |section|. |
+ void PersistAutofillChoice(DialogSection section, |
+ const std::string& guid, |
+ int variant); |
+ |
+ // Reads from prefs the choice of AutofillDataModel for |section|. If there is |
+ // no pref for this section, sets the outparams to default values. |
+ void GetAutofillChoice(DialogSection section, |
+ std::string* guid, |
+ int* variant); |
+ |
+ // Calculates which AutofillDataModel variant |model| is referring to. |
+ size_t GetSelectedVariantForModel(const SuggestionsMenuModel& model); |
+ |
// Logs metrics when the dialog is submitted. |
void LogOnFinishSubmitMetrics(); |