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

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

Issue 1518783002: Revert of autofill: switch autofill_regexes to RE2 library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « components/autofill/core/browser/email_field.cc ('k') | components/autofill/core/browser/form_field.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/form_field.h
diff --git a/components/autofill/core/browser/form_field.h b/components/autofill/core/browser/form_field.h
index 1b1248e30ed9bcd86946c6cdded4dfbd8354ffeb..c27dc0896501289068f544ae65f7503bf372710c 100644
--- a/components/autofill/core/browser/form_field.h
+++ b/components/autofill/core/browser/form_field.h
@@ -69,7 +69,7 @@
// Attempts to parse a form field with the given pattern. Returns true on
// success and fills |match| with a pointer to the field.
static bool ParseField(AutofillScanner* scanner,
- const std::string& pattern,
+ const base::string16& pattern,
AutofillField** match);
// Parses the stream of fields in |scanner| with regular expression |pattern|
@@ -78,7 +78,7 @@
// A |true| result is returned in the case of a successful match, false
// otherwise.
static bool ParseFieldSpecifics(AutofillScanner* scanner,
- const std::string& pattern,
+ const base::string16& pattern,
int match_type,
AutofillField** match);
@@ -89,7 +89,7 @@
// change.
static ParseNameLabelResult ParseNameAndLabelSeparately(
AutofillScanner* scanner,
- const std::string& pattern,
+ const base::string16& pattern,
int match_type,
AutofillField** match);
@@ -123,14 +123,14 @@
// Returns |true| if a match is found according to |match_type|, and |false|
// otherwise.
static bool MatchAndAdvance(AutofillScanner* scanner,
- const std::string& pattern,
+ const base::string16& pattern,
int match_type,
AutofillField** match);
// Matches the regular expression |pattern| against the components of |field|
// as specified in the |match_type| bit field (see |MatchType|).
static bool Match(const AutofillField* field,
- const std::string& pattern,
+ const base::string16& pattern,
int match_type);
// Perform a "pass" over the |fields| where each pass uses the supplied
« no previous file with comments | « components/autofill/core/browser/email_field.cc ('k') | components/autofill/core/browser/form_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698