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

Unified Diff: components/autofill/core/common/autofill_regexes.h

Issue 1453193002: autofill: switch autofill_regexes to RE2 library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reviews Created 5 years 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
Index: components/autofill/core/common/autofill_regexes.h
diff --git a/components/autofill/core/common/autofill_regexes.h b/components/autofill/core/common/autofill_regexes.h
index 1bf1aa73a6c51b9158a86d1e2e3185591f510e50..e5024ce9f3fafb1e5a3c78e356522520a6b7c852 100644
--- a/components/autofill/core/common/autofill_regexes.h
+++ b/components/autofill/core/common/autofill_regexes.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_
#define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_REGEXES_H_
+#include <string>
+
#include "base/strings/string16.h"
// Parsing utilities.
@@ -13,7 +15,7 @@ namespace autofill {
// Case-insensitive regular expression matching.
// Returns true if |pattern| is found in |input|.
bool MatchesPattern(const base::string16& input,
- const base::string16& pattern);
+ const std::string& pattern);
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698