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

Unified Diff: net/quic/core/quic_alarm.cc

Issue 2334363002: Landing Recent QUIC changes until Sat Sep 10 00:32:41 (Closed)
Patch Set: Revase Created 4 years, 3 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 | « net/quic/core/crypto/quic_decrypter.cc ('k') | net/quic/core/quic_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_alarm.cc
diff --git a/net/quic/core/quic_alarm.cc b/net/quic/core/quic_alarm.cc
index 15bde886e1781e606e76e3e7e63ccf672d4323f8..985be648f666fd5f23e6f7b07fa1bd03ffef14d5 100644
--- a/net/quic/core/quic_alarm.cc
+++ b/net/quic/core/quic_alarm.cc
@@ -39,17 +39,12 @@ void QuicAlarm::Update(QuicTime new_deadline, QuicTime::Delta granularity) {
granularity.ToMicroseconds()) {
return;
}
- if (FLAGS_quic_change_alarms_efficiently) {
- const bool was_set = IsSet();
- deadline_ = new_deadline;
- if (was_set) {
- UpdateImpl();
- } else {
- SetImpl();
- }
+ const bool was_set = IsSet();
+ deadline_ = new_deadline;
+ if (was_set) {
+ UpdateImpl();
} else {
- Cancel();
- Set(new_deadline);
+ SetImpl();
}
}
« no previous file with comments | « net/quic/core/crypto/quic_decrypter.cc ('k') | net/quic/core/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698