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

Unified Diff: components/autofill/core/browser/form_structure.h

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaning Created 4 years, 4 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: components/autofill/core/browser/form_structure.h
diff --git a/components/autofill/core/browser/form_structure.h b/components/autofill/core/browser/form_structure.h
index aab2a664be8ed5c1300541e19f7a8957140f6c7f..074c2298cbb08b04fdb718d4cb777b1c58a8d7b4 100644
--- a/components/autofill/core/browser/form_structure.h
+++ b/components/autofill/core/browser/form_structure.h
@@ -99,6 +99,11 @@ class FormStructure {
// auto-fillable, like google/yahoo/msn search, etc.
bool IsAutofillable() const;
+ // Returns whether |this| form represents a complete Credit Card form, which
+ // consists in having at least a credit card number field and an expiration
+ // field.
+ bool IsCompleteCreditCardForm() const;
+
// Resets |autofill_count_| and counts the number of auto-fillable fields.
// This is used when we receive server data for form fields. At that time,
// we may have more known fields than just the number of fields we matched

Powered by Google App Engine
This is Rietveld 408576698