Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4069)

Unified Diff: chrome/browser/autofill/autofill_scanner.cc

Issue 7066043: Cache Autofill heuristics regexes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_scanner.h ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
-
« no previous file with comments | « chrome/browser/autofill/autofill_scanner.h ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698