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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_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: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
index d13f8c49ae2d633d35238e57e61afe1b1011de05..e6eb8730ff7cdfe2142770c9899d291e37bde038 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc
@@ -259,7 +259,7 @@ class DataReductionProxyProtocolTest : public testing::Test {
}
// Returns the key to the |ProxyRetryInfoMap|.
- std::string GetProxyKey(std::string proxy) {
+ std::string GetProxyKey(const std::string& proxy) {
net::ProxyServer proxy_server = net::ProxyServer::FromURI(
proxy, net::ProxyServer::SCHEME_HTTP);
if (!proxy_server.is_valid())

Powered by Google App Engine
This is Rietveld 408576698