Index: base/string_util.cc |
diff --git a/base/string_util.cc b/base/string_util.cc |
index c30db96a32ef7c9ab2fe123ae542b3ea134a1dda..c7268dca3bedd877a0f626758f92153b2397934f 100644 |
--- a/base/string_util.cc |
+++ b/base/string_util.cc |
@@ -1113,9 +1113,10 @@ struct NextCharUTF16 { |
} |
}; |
-bool MatchPattern(const std::string& eval, const std::string& pattern) { |
- return MatchPatternT(eval.c_str(), eval.c_str() + eval.size(), |
- pattern.c_str(), pattern.c_str() + pattern.size(), |
+bool MatchPattern(const base::StringPiece& eval, |
+ const base::StringPiece& pattern) { |
+ return MatchPatternT(eval.data(), eval.data() + eval.size(), |
+ pattern.data(), pattern.data() + pattern.size(), |
0, NextCharUTF8()); |
} |