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

Unified Diff: net/tools/quic/test_tools/quic_test_client.cc

Issue 1346943004: Cleanup: Pass std::string as const reference from net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | net/tools/tld_cleanup/tld_cleanup_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_client.cc
diff --git a/net/tools/quic/test_tools/quic_test_client.cc b/net/tools/quic/test_tools/quic_test_client.cc
index 1b01daadc6acf952054bd8afc7eb6566fda62a80..eff3160539f410d17bf16b1d57032e8d37b1031e 100644
--- a/net/tools/quic/test_tools/quic_test_client.cc
+++ b/net/tools/quic/test_tools/quic_test_client.cc
@@ -318,11 +318,11 @@ ssize_t QuicTestClient::SendMessage(const HTTPMessage& message) {
return ret;
}
-ssize_t QuicTestClient::SendData(string data, bool last_data) {
+ssize_t QuicTestClient::SendData(const string& data, bool last_data) {
return SendData(data, last_data, nullptr);
}
-ssize_t QuicTestClient::SendData(string data,
+ssize_t QuicTestClient::SendData(const string& data,
bool last_data,
QuicAckNotifier::DelegateInterface* delegate) {
return GetOrCreateStreamAndSendRequest(nullptr, StringPiece(data), last_data,
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.h ('k') | net/tools/tld_cleanup/tld_cleanup_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698