| Index: net/quic/congestion_control/tcp_cubic_sender.cc
|
| diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
|
| index bef8906d412b4b1a219d5dda959c96beefd5a0a9..80f07f50ad7eafc035d9837927ae62afa31e8b16 100644
|
| --- a/net/quic/congestion_control/tcp_cubic_sender.cc
|
| +++ b/net/quic/congestion_control/tcp_cubic_sender.cc
|
| @@ -57,10 +57,6 @@ TcpCubicSender::~TcpCubicSender() {
|
| UMA_HISTOGRAM_COUNTS("Net.QuicSession.FinalTcpCwnd", congestion_window_);
|
| }
|
|
|
| -bool TcpCubicSender::InSlowStart() const {
|
| - return congestion_window_ < slowstart_threshold_;
|
| -}
|
| -
|
| void TcpCubicSender::SetFromConfig(const QuicConfig& config, bool is_server) {
|
| if (is_server && config.HasReceivedInitialCongestionWindow()) {
|
| // Set the initial window size.
|
| @@ -213,6 +209,10 @@ QuicByteCount TcpCubicSender::GetCongestionWindow() const {
|
| return congestion_window_ * kMaxSegmentSize;
|
| }
|
|
|
| +bool TcpCubicSender::InSlowStart() const {
|
| + return congestion_window_ < slowstart_threshold_;
|
| +}
|
| +
|
| QuicByteCount TcpCubicSender::GetSlowStartThreshold() const {
|
| return slowstart_threshold_ * kMaxSegmentSize;
|
| }
|
|
|