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

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

Issue 1010743007: Autofill: Apply the same field match mask to all phone field subtypes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.h
diff --git a/components/autofill/core/browser/phone_field.h b/components/autofill/core/browser/phone_field.h
index 27362904ff53123ee570b8b491726b7a4f5993d2..55341790480ab6d94e0006023565ec8cdfb8e3d7 100644
--- a/components/autofill/core/browser/phone_field.h
+++ b/components/autofill/core/browser/phone_field.h
@@ -79,8 +79,13 @@ class PhoneField : public FormField {
PhoneField();
- // Returns the regular expression string correspoding to |regex_id|
- static base::string16 GetRegExp(RegexType regex_id);
+ // Returns the regular expression string corresponding to |regex_id|
+ static std::string GetRegExp(RegexType regex_id);
+
+ // Convenient wrapper for ParseFieldSpecifics().
+ static bool ParsePhoneField(AutofillScanner* scanner,
+ const std::string& regex,
+ AutofillField** field);
// FIELD_PHONE is always present; holds suffix if prefix is present.
// The rest could be NULL.

Powered by Google App Engine
This is Rietveld 408576698