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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_session.cc ('k') | net/quic/quic_stream_sequencer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
}
}
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_stream_sequencer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698