| 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 74f93a4f3e561c3438ae801177b93df817d39dd5..77a8d9f08aa6bf22eec63f325d6101b9478298eb 100644
|
| --- a/components/autofill/core/browser/phone_field.cc
|
| +++ b/components/autofill/core/browser/phone_field.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/strings/string16.h"
|
| #include "base/strings/string_util.h"
|
| +#include "base/strings/utf_string_conversions.h"
|
| #include "components/autofill/core/browser/autofill_field.h"
|
| #include "components/autofill/core/browser/autofill_regex_constants.h"
|
| #include "components/autofill/core/browser/autofill_scanner.h"
|
| @@ -275,8 +276,10 @@
|
| bool PhoneField::ParsePhoneField(AutofillScanner* scanner,
|
| const std::string& regex,
|
| AutofillField** field) {
|
| - return ParseFieldSpecifics(
|
| - scanner, regex, MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER, field);
|
| + return ParseFieldSpecifics(scanner,
|
| + base::UTF8ToUTF16(regex),
|
| + MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER,
|
| + field);
|
| }
|
|
|
| } // namespace autofill
|
|
|