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

Unified Diff: net/tools/tld_cleanup/tld_cleanup_util_unittest.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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
Index: net/tools/tld_cleanup/tld_cleanup_util_unittest.cc
diff --git a/net/tools/tld_cleanup/tld_cleanup_util_unittest.cc b/net/tools/tld_cleanup/tld_cleanup_util_unittest.cc
index 6c7cbad918079523deaf93e534a8fdb374c0f3d5..d2b970e71f8db4f831d0b6da0d1ab1629a1c8acc 100644
--- a/net/tools/tld_cleanup/tld_cleanup_util_unittest.cc
+++ b/net/tools/tld_cleanup/tld_cleanup_util_unittest.cc
@@ -10,7 +10,8 @@
namespace net {
namespace tld_cleanup {
-std::string SetupData(std::string icann_domains, std::string private_domains) {
+std::string SetupData(const std::string& icann_domains,
+ const std::string& private_domains) {
return "// ===BEGIN ICANN DOMAINS===\n" +
icann_domains +
"// ===END ICANN DOMAINS===\n" +

Powered by Google App Engine
This is Rietveld 408576698