Cleanup: Pass std::string as const reference from components/

Passing std::string by reference can prevent extra copying of object.

BUG=367418
TEST=
[email protected],[email protected],[email protected]

Review URL: https://codereview.chromium.org/1355983002

Cr-Commit-Position: refs/heads/master@{#351023}
diff --git a/components/url_matcher/url_matcher_unittest.cc b/components/url_matcher/url_matcher_unittest.cc
index 328c633..3d6d6c5 100644
--- a/components/url_matcher/url_matcher_unittest.cc
+++ b/components/url_matcher/url_matcher_unittest.cc
@@ -147,7 +147,7 @@
 
 namespace {
 
-bool Matches(const URLMatcherCondition& condition, std::string text) {
+bool Matches(const URLMatcherCondition& condition, const std::string& text) {
   return text.find(condition.string_pattern()->pattern()) !=
       std::string::npos;
 }