| Index: net/quic/congestion_control/tcp_cubic_bytes_sender.cc
|
| diff --git a/net/quic/congestion_control/tcp_cubic_bytes_sender.cc b/net/quic/congestion_control/tcp_cubic_bytes_sender.cc
|
| index e4ea55f351b3d779e42619e660233a7bc15b8723..bd846730fe863e623309513ef19700762f1fc443 100644
|
| --- a/net/quic/congestion_control/tcp_cubic_bytes_sender.cc
|
| +++ b/net/quic/congestion_control/tcp_cubic_bytes_sender.cc
|
| @@ -77,7 +77,8 @@ void TcpCubicBytesSender::SetFromConfig(const QuicConfig& config,
|
| }
|
|
|
| bool TcpCubicBytesSender::ResumeConnectionState(
|
| - const CachedNetworkParameters& cached_network_params) {
|
| + const CachedNetworkParameters& cached_network_params,
|
| + bool max_bandwidth_resumption) {
|
| // If the previous bandwidth estimate is less than an hour old, store in
|
| // preparation for doing bandwidth resumption.
|
| int64 seconds_since_estimate =
|
| @@ -87,7 +88,9 @@ bool TcpCubicBytesSender::ResumeConnectionState(
|
| }
|
|
|
| QuicBandwidth bandwidth = QuicBandwidth::FromBytesPerSecond(
|
| - cached_network_params.bandwidth_estimate_bytes_per_second());
|
| + max_bandwidth_resumption
|
| + ? cached_network_params.max_bandwidth_estimate_bytes_per_second()
|
| + : cached_network_params.bandwidth_estimate_bytes_per_second());
|
| QuicTime::Delta rtt_ms =
|
| QuicTime::Delta::FromMilliseconds(cached_network_params.min_rtt_ms());
|
|
|
|
|