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

Unified Diff: net/tools/flip_server/spdy_util.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/tools/flip_server/spdy_util.h
diff --git a/net/tools/flip_server/spdy_util.h b/net/tools/flip_server/spdy_util.h
index 6f002000089a2a752fcfab7259e67a5e175988d0..a418b3d0322ab7d6910263556b9df6c41007fa82 100644
--- a/net/tools/flip_server/spdy_util.h
+++ b/net/tools/flip_server/spdy_util.h
@@ -13,7 +13,9 @@ namespace net {
extern bool g_need_to_encode_url;
// Encode the URL.
-std::string EncodeURL(std::string uri, std::string host, std::string method);
+std::string EncodeURL(const std::string& uri,
+ const std::string& host,
+ const std::string& method);
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698