Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4123)

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 15500008: Persist the choice of AutofillDataModel when using the requestAutocomplete dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better comment Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698