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

Unified Diff: net/dns/mdns_client_impl.h

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_impl.h
diff --git a/net/dns/mdns_client_impl.h b/net/dns/mdns_client_impl.h
index e788601fd76ec4e608aab43d523370e5f5be8a62..a9234c494a13cf1b686f2492e6184220c2b81460 100644
--- a/net/dns/mdns_client_impl.h
+++ b/net/dns/mdns_client_impl.h
@@ -122,7 +122,7 @@ class NET_EXPORT_PRIVATE MDnsClientImpl : public MDnsClient {
bool Init(MDnsSocketFactory* socket_factory);
// Send a query with a specific rrtype and name. Returns true on success.
- bool SendQuery(uint16 rrtype, std::string name);
+ bool SendQuery(uint16 rrtype, const std::string& name);
// Add/remove a listener to the list of listeners.
void AddListener(MDnsListenerImpl* listener);
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/dns/mdns_client_impl.cc » ('j') | url/gurl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698