| Index: components/autofill/core/browser/form_field.cc
|
| diff --git a/components/autofill/core/browser/form_field.cc b/components/autofill/core/browser/form_field.cc
|
| index 50d7e8a30a81cf74343e3656627695840085f9cf..4c11c89a99930a5cb3df40cc8586d6953772aa32 100644
|
| --- a/components/autofill/core/browser/form_field.cc
|
| +++ b/components/autofill/core/browser/form_field.cc
|
| @@ -180,12 +180,14 @@ bool FormField::Match(const AutofillField* field,
|
| const base::string16& pattern,
|
| int match_type) {
|
| if ((match_type & FormField::MATCH_LABEL) &&
|
| - MatchesPattern(field->label, pattern)) {
|
| + MatchesPattern(base::UTF16ToASCII(field->label),
|
| + base::UTF16ToASCII(pattern))) {
|
| return true;
|
| }
|
|
|
| if ((match_type & FormField::MATCH_NAME) &&
|
| - MatchesPattern(field->name, pattern)) {
|
| + MatchesPattern(base::UTF16ToASCII(field->name),
|
| + base::UTF16ToASCII(pattern))) {
|
| return true;
|
| }
|
|
|
|
|