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

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

Issue 622773002: [Autofill] Autofill fails to show suggestions for credit card split across fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit-tests. Created 6 years, 2 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/autofill_field.h
diff --git a/components/autofill/core/browser/autofill_field.h b/components/autofill/core/browser/autofill_field.h
index 1c79bb2fd001fc090115c738fb06e06054185923..47e3210b69c6fd3f8943260a356a3ceb032c8a6e 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -89,6 +89,13 @@ class AutofillField : public FormFieldData {
const base::string16& number,
const FormFieldData& field_data);
+ // Returns the credit card number value for the given |field|. The returned
+ // value might be |number|, or possibly an appropriate substring of |number|
+ // for cases where credit card number splits across multiple HTML form input
+ // fields.
+ static base::string16 GetCreditCardNumberValue(const AutofillField& field,
+ const base::string16& number);
+
private:
// The unique name of this field, generated by Autofill.
base::string16 unique_name_;
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_field.cc » ('j') | components/autofill/core/browser/autofill_field.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698