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

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

Issue 1453193002: autofill: switch autofill_regexes to RE2 library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 14 tests failing Created 5 years, 1 month 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 77a8d9f08aa6bf22eec63f325d6101b9478298eb..452e7eb4dd3cee38a04a4080dd2cb19936e18395 100644
--- a/components/autofill/core/browser/phone_field.cc
+++ b/components/autofill/core/browser/phone_field.cc
@@ -276,10 +276,8 @@ std::string PhoneField::GetRegExp(RegexType regex_id) {
bool PhoneField::ParsePhoneField(AutofillScanner* scanner,
const std::string& regex,
AutofillField** field) {
- return ParseFieldSpecifics(scanner,
- base::UTF8ToUTF16(regex),
- MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER,
- field);
+ return ParseFieldSpecifics(
+ scanner, regex, MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER, field);
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698