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

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: fix bad merge resolution 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698