| Index: chrome/browser/autofill/autofill_scanner.cc
|
| diff --git a/chrome/browser/autofill/autofill_scanner.cc b/chrome/browser/autofill/autofill_scanner.cc
|
| index 6526fcc0812b0c78cbb239cea7c95a4e7a7183d1..1fd8a7ec9973ed44d0edd4e61f92a380e3cfc1ca 100644
|
| --- a/chrome/browser/autofill/autofill_scanner.cc
|
| +++ b/chrome/browser/autofill/autofill_scanner.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/logging.h"
|
| #include "chrome/browser/autofill/autofill_field.h"
|
| -#include "unicode/regex.h"
|
|
|
| AutofillScanner::AutofillScanner(
|
| const std::vector<const AutofillField*>& fields)
|
| @@ -44,21 +43,3 @@ void AutofillScanner::Rewind() {
|
| void AutofillScanner::SaveCursor() {
|
| saved_cursors_.push_back(cursor_);
|
| }
|
| -
|
| -namespace autofill {
|
| -
|
| -bool MatchString(const string16& input, const string16& pattern) {
|
| - UErrorCode status = U_ZERO_ERROR;
|
| - icu::UnicodeString icu_pattern(pattern.data(), pattern.length());
|
| - icu::UnicodeString icu_input(input.data(), input.length());
|
| - icu::RegexMatcher matcher(icu_pattern, icu_input,
|
| - UREGEX_CASE_INSENSITIVE, status);
|
| - DCHECK(U_SUCCESS(status));
|
| -
|
| - UBool match = matcher.find(0, status);
|
| - DCHECK(U_SUCCESS(status));
|
| - return !!match;
|
| -}
|
| -
|
| -} // namespace autofill
|
| -
|
|
|