Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index 300028d819804a4c0c23ad8c04eb7c6cbe8f76d5..3b8765259f6d2e1ab62698dc9e13fa2e0c0015db 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -681,7 +681,7 @@ bool QuicConnection::OnAckFrame(const QuicAckFrame& incoming_ack) { |
return false; |
} |
- if (FLAGS_quic_respect_send_alarm2 && send_alarm_->IsSet()) { |
+ if (send_alarm_->IsSet()) { |
send_alarm_->Cancel(); |
} |
ProcessAckFrame(incoming_ack); |
@@ -1490,17 +1490,15 @@ bool QuicConnection::CanWrite(HasRetransmittableData retransmittable) { |
return false; |
} |
- if (FLAGS_quic_respect_send_alarm2) { |
- // Allow acks to be sent immediately. |
- // TODO(ianswett): Remove retransmittable from |
- // SendAlgorithmInterface::TimeUntilSend. |
- if (retransmittable == NO_RETRANSMITTABLE_DATA) { |
- return true; |
- } |
- // If the send alarm is set, wait for it to fire. |
- if (send_alarm_->IsSet()) { |
- return false; |
- } |
+ // Allow acks to be sent immediately. |
+ // TODO(ianswett): Remove retransmittable from |
+ // SendAlgorithmInterface::TimeUntilSend. |
+ if (retransmittable == NO_RETRANSMITTABLE_DATA) { |
+ return true; |
+ } |
+ // If the send alarm is set, wait for it to fire. |
+ if (send_alarm_->IsSet()) { |
+ return false; |
} |
QuicTime now = clock_->Now(); |
@@ -1518,9 +1516,6 @@ bool QuicConnection::CanWrite(HasRetransmittableData retransmittable) { |
<< "ms"; |
return false; |
} |
- if (!FLAGS_quic_respect_send_alarm2) { |
- send_alarm_->Cancel(); |
- } |
return true; |
} |