Index: net/quic/quic_stream_factory.cc |
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
index 32adedae7cfcb87c7bd14f40784e94e6488978ad..e7612a0138c39b4f0e30edea4be6ca4e613d1f5d 100644 |
--- a/net/quic/quic_stream_factory.cc |
+++ b/net/quic/quic_stream_factory.cc |
@@ -871,7 +871,8 @@ int QuicStreamFactory::CreateSession( |
// that is more than large enough for a full receive window, and yet |
// does not consume "too much" memory. If we see bursty packet loss, we may |
// revisit this setting and test for its impact. |
- const int32 kSocketBufferSize(TcpReceiver::kReceiveWindowTCP); |
+ const int32 kSocketBufferSize = |
+ static_cast<int32>(TcpReceiver::kReceiveWindowTCP); |
rv = socket->SetReceiveBufferSize(kSocketBufferSize); |
if (rv != OK) { |
HistogramCreateSessionFailure(CREATION_ERROR_SETTING_RECEIVE_BUFFER); |
@@ -928,7 +929,8 @@ int QuicStreamFactory::CreateSession( |
http_server_properties_->GetServerNetworkStats( |
server_id.host_port_pair()); |
if (stats != nullptr) { |
- config.SetInitialRoundTripTimeUsToSend(stats->srtt.InMicroseconds()); |
+ config.SetInitialRoundTripTimeUsToSend( |
+ static_cast<uint32>(stats->srtt.InMicroseconds())); |
} |
} |