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

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

Issue 11742033: requestAutocomplete: only menu-suggest "complete" profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller.h b/chrome/browser/ui/autofill/autofill_dialog_controller.h
index 4dbd74dc520ec6d9c2ef92fbe01f908f884eeffe..9214d75d8543e9cbb373588f6a63a3d953e2082e 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller.h
@@ -151,6 +151,11 @@ class AutofillDialogController : public AutofillPopupDelegate {
// Initializes |suggested_email_| et al.
void GenerateComboboxModels();
+ // Returns whether |profile| is complete, i.e. can fill out all the relevant
+ // address info. Incomplete profiles will not be displayed in the dropdown
+ // menu.
+ bool IsCompleteProfile(const AutofillProfile* profile);
Ilya Sherman 2013/01/03 23:54:04 nit: Pass by const reference
Evan Stade 2013/01/04 02:16:58 Done.
+
// Fills in |section|-related fields in |output_| according to the state of
// |view_|.
void FillOutputForSection(DialogSection section);

Powered by Google App Engine
This is Rietveld 408576698