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 36acceb42bc4ad7bf1c7810248aa4ffca869ec47..2bc9c2915d2cf68bfb206cfd7348276c31bf5a3b 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h |
@@ -444,6 +444,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(); |