Index: net/quic/quic_flow_controller.cc |
diff --git a/net/quic/quic_flow_controller.cc b/net/quic/quic_flow_controller.cc |
index 30c5386f53a2aece2cff1b00caca8c8d0a87914d..f3c8eef7e7992dd92793899a0f92483faa666a12 100644 |
--- a/net/quic/quic_flow_controller.cc |
+++ b/net/quic/quic_flow_controller.cc |
@@ -135,8 +135,8 @@ void QuicFlowController::MaybeIncreaseMaxWindowSize() { |
} |
// Now we can compare timing of window updates with RTT. |
- QuicTime::Delta since_last = now.Subtract(prev); |
- QuicTime::Delta two_rtt = rtt.Multiply(2); |
+ QuicTime::Delta since_last = now - prev; |
+ QuicTime::Delta two_rtt = 2 * rtt; |
if (since_last >= two_rtt) { |
// If interval between window updates is sufficiently large, there |