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..f576421cd1a5aa49dc573fcde2dfa0d06d9e4bad 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -449,6 +449,26 @@ 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); |
+ |
+ // Sets the outparams to the default AutofillDataModel for |section| (which is |
+ // the first one in the menu that is a suggestion item). |
+ void GetDefaultAutofillChoice(DialogSection section, |
+ std::string* guid, |
+ int* variant); |
+ |
+ // Reads from prefs the choice of AutofillDataModel for |section|. Returns |
+ // whether there was a setting to read. |
+ bool 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(); |