OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/autofill/core/browser/phone_field.h" | 5 #include "components/autofill/core/browser/phone_field.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 NOTREACHED(); | 269 NOTREACHED(); |
270 break; | 270 break; |
271 } | 271 } |
272 return std::string(); | 272 return std::string(); |
273 } | 273 } |
274 | 274 |
275 // static | 275 // static |
276 bool PhoneField::ParsePhoneField(AutofillScanner* scanner, | 276 bool PhoneField::ParsePhoneField(AutofillScanner* scanner, |
277 const std::string& regex, | 277 const std::string& regex, |
278 AutofillField** field) { | 278 AutofillField** field) { |
279 return ParseFieldSpecifics(scanner, | 279 return ParseFieldSpecifics( |
280 base::UTF8ToUTF16(regex), | 280 scanner, regex, MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER, field); |
281 MATCH_DEFAULT | MATCH_TELEPHONE | MATCH_NUMBER, | |
282 field); | |
283 } | 281 } |
284 | 282 |
285 } // namespace autofill | 283 } // namespace autofill |
OLD | NEW |