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

Unified Diff: components/autofill/core/browser/phone_field.cc

Issue 1031923003: Autofill: Recognize phone numbers in input fields of type number. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill_b464002_a
Patch Set: fix bad test expectation Created 5 years, 9 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/phone_field.cc
diff --git a/components/autofill/core/browser/phone_field.cc b/components/autofill/core/browser/phone_field.cc
index 3c6b351e7d2317c514196b59ec73b4dbf4622a1b..77a8d9f08aa6bf22eec63f325d6101b9478298eb 100644
--- a/components/autofill/core/browser/phone_field.cc
+++ b/components/autofill/core/browser/phone_field.cc
@@ -278,7 +278,7 @@ bool PhoneField::ParsePhoneField(AutofillScanner* scanner,
AutofillField** field) {
return ParseFieldSpecifics(scanner,
base::UTF8ToUTF16(regex),
- MATCH_DEFAULT | MATCH_TELEPHONE,
+ MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER,
field);
}
« no previous file with comments | « chrome/test/data/autofill/heuristics/output/bug_469012.out ('k') | components/autofill/core/browser/phone_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698