| Index: net/quic/quic_client_session.cc
|
| diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
|
| index 7bd4078a32be40c0ed6469d64718b0325d7bc2b4..5e1e80f6911d9638a762af842a4aae75fb547f89 100644
|
| --- a/net/quic/quic_client_session.cc
|
| +++ b/net/quic/quic_client_session.cc
|
| @@ -23,14 +23,10 @@ QuicClientSession::QuicClientSession(
|
| QuicStreamFactory* stream_factory,
|
| QuicCryptoClientStreamFactory* crypto_client_stream_factory,
|
| const string& server_hostname,
|
| + QuicCryptoClientConfig* crypto_config,
|
| NetLog* net_log)
|
| : QuicSession(connection, false),
|
| ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
|
| - ALLOW_THIS_IN_INITIALIZER_LIST(crypto_stream_(
|
| - crypto_client_stream_factory ?
|
| - crypto_client_stream_factory->CreateQuicCryptoClientStream(
|
| - this, server_hostname) :
|
| - new QuicCryptoClientStream(this, server_hostname))),
|
| stream_factory_(stream_factory),
|
| socket_(socket),
|
| read_buffer_(new IOBufferWithSize(kMaxPacketSize)),
|
| @@ -38,6 +34,14 @@ QuicClientSession::QuicClientSession(
|
| num_total_streams_(0),
|
| net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_QUIC_SESSION)),
|
| logger_(net_log_) {
|
| + config_.SetDefaults();
|
| + crypto_stream_.reset(
|
| + crypto_client_stream_factory ?
|
| + crypto_client_stream_factory->CreateQuicCryptoClientStream(
|
| + server_hostname, config_, this, crypto_config) :
|
| + new QuicCryptoClientStream(
|
| + server_hostname, config_, this, crypto_config));
|
| +
|
| connection->set_debug_visitor(&logger_);
|
| // TODO(rch): pass in full host port proxy pair
|
| net_log_.BeginEvent(
|
|
|