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

Unified Diff: ios/crnet/crnet_environment.mm

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: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index c8650cb0483aefc12390c79bc7e11c6ccc3d2d3f..9fa39da6b3f88a0c82faaa8d99da2da95f0c8f46 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -253,15 +253,13 @@ void CrNetEnvironment::CloseAllSpdySessionsInternal() {
}
}
-CrNetEnvironment::CrNetEnvironment(std::string user_agent_product_name)
+CrNetEnvironment::CrNetEnvironment(const std::string& user_agent_product_name)
: spdy_enabled_(false),
quic_enabled_(false),
sdch_enabled_(false),
main_context_(new net::URLRequestContext),
user_agent_product_name_(user_agent_product_name),
- net_log_(new net::NetLog) {
-
-}
+ net_log_(new net::NetLog) {}
void CrNetEnvironment::Install() {
// Threads setup.

Powered by Google App Engine
This is Rietveld 408576698