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

Unified Diff: net/quic/quic_connection.cc

Issue 1785693003: Deprecate FLAG_quic_use_new_idle_timeout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115891009
Patch Set: Created 4 years, 9 months 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 | « no previous file | net/quic/quic_connection_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index d8ab40f485128a3ce639f9d3beaf86d39eb3f127..46636fae13f9e6ec0be2b186b3a860d950578baa 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -2201,14 +2201,8 @@ void QuicConnection::SetNetworkTimeouts(QuicTime::Delta handshake_timeout,
void QuicConnection::CheckForTimeout() {
QuicTime now = clock_->ApproximateNow();
- QuicTime time_of_last_packet = QuicTime::Zero();
- if (!FLAGS_quic_use_new_idle_timeout) {
- time_of_last_packet =
- max(time_of_last_received_packet_, time_of_last_sent_new_packet_);
- } else {
- time_of_last_packet =
- max(time_of_last_received_packet_, last_send_for_timeout_);
- }
+ QuicTime time_of_last_packet =
+ max(time_of_last_received_packet_, last_send_for_timeout_);
// |delta| can be < 0 as |now| is approximate time but |time_of_last_packet|
// is accurate time. However, this should not change the behavior of
« no previous file with comments | « no previous file | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698