Index: components/autofill/core/browser/validation.cc |
diff --git a/components/autofill/core/browser/validation.cc b/components/autofill/core/browser/validation.cc |
index b4c95674ebad46c819e0bbf4881977a180d3d004..f2f1a88a253b3ddb5b6ed4c209478930e4b8fcc1 100644 |
--- a/components/autofill/core/browser/validation.cc |
+++ b/components/autofill/core/browser/validation.cc |
@@ -127,9 +127,9 @@ bool IsValidCreditCardSecurityCode(const base::string16& code, |
bool IsValidEmailAddress(const base::string16& text) { |
// E-Mail pattern as defined by the WhatWG. (4.10.7.1.5 E-Mail state) |
- const base::string16 kEmailPattern = base::ASCIIToUTF16( |
+ const char kEmailPattern[] = |
"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@" |
- "[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$"); |
+ "[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$"; |
return MatchesPattern(text, kEmailPattern); |
} |
@@ -139,7 +139,7 @@ bool IsValidState(const base::string16& text) { |
} |
bool IsValidZip(const base::string16& text) { |
- const base::string16 kZipPattern = base::ASCIIToUTF16("^\\d{5}(-\\d{4})?$"); |
+ const char kZipPattern[] = "^\\d{5}(-\\d{4})?$"; |
return MatchesPattern(text, kZipPattern); |
} |