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

Unified Diff: net/quic/quic_client_session.cc

Issue 511543006: QUIC - use HostPortPair instead of scoped_ptr<HostPortPair>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed wtc's comments Created 6 years, 4 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/quic/quic_client_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.cc
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index 00d130f85e3fface110d55a9d4cc5b5068a14054..2bea4815e318b6a17e828583432a2eb9024cf6d9 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -164,7 +164,7 @@ void QuicClientSession::InitializeSession(
const QuicServerId& server_id,
QuicCryptoClientConfig* crypto_config,
QuicCryptoClientStreamFactory* crypto_client_stream_factory) {
- server_host_port_.reset(new HostPortPair(server_id.host_port_pair()));
+ server_host_port_ = server_id.host_port_pair();
crypto_stream_.reset(
crypto_client_stream_factory ?
crypto_client_stream_factory->CreateQuicCryptoClientStream(
@@ -504,7 +504,7 @@ bool QuicClientSession::CanPool(const std::string& hostname) const {
}
return SpdySession::CanPool(transport_security_state_, ssl_info,
- server_host_port_->host(), hostname);
+ server_host_port_.host(), hostname);
}
QuicDataStream* QuicClientSession::CreateIncomingDataStream(
« no previous file with comments | « net/quic/quic_client_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698