commit | 939799a4b72e978038109fce97bf043b988428b4 | [log] [tgz] |
---|---|---|
author | ki.stfu <[email protected]> | Mon Sep 28 04:41:20 2015 |
committer | Commit bot <[email protected]> | Mon Sep 28 04:42:06 2015 |
tree | b5dcf22a458103cd3c7ebc35ec117665c2f2c080 | |
parent | 96e79b2a53fddaac6040ca2e699c33fbdf44641c [diff] [blame] |
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; }