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

Unified Diff: net/dns/mdns_client_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/dns/mdns_client_unittest.cc
diff --git a/net/dns/mdns_client_unittest.cc b/net/dns/mdns_client_unittest.cc
index 7dccda12e5bbd32d54e18e976955db5246144ae6..bd84aca3d83469159640ac636e815731d19db322 100644
--- a/net/dns/mdns_client_unittest.cc
+++ b/net/dns/mdns_client_unittest.cc
@@ -412,7 +412,7 @@ class PtrRecordCopyContainer {
ttl_ = value->ttl();
}
- bool IsRecordWith(std::string name, std::string ptrdomain) {
+ bool IsRecordWith(const std::string& name, const std::string& ptrdomain) {
return set_ && name_ == name && ptrdomain_ == ptrdomain;
}
« no previous file with comments | « net/dns/mdns_client_impl.cc ('k') | net/dns/mock_mdns_socket_factory.h » ('j') | url/gurl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698