gfe-relnote: (n/a) Only increment flag count for quic_simple_inflight_time when the flag is true. Flag count only.
PiperOrigin-RevId: 267587566
Change-Id: I9937fcaabde9919aaab1bffb42f37f53078cce47
diff --git a/quic/core/quic_unacked_packet_map.cc b/quic/core/quic_unacked_packet_map.cc
index 92f3171..cc9c13f 100644
--- a/quic/core/quic_unacked_packet_map.cc
+++ b/quic/core/quic_unacked_packet_map.cc
@@ -35,7 +35,9 @@
session_decides_what_to_write_(false),
supports_multiple_packet_number_spaces_(false),
simple_inflight_time_(GetQuicReloadableFlag(quic_simple_inflight_time)) {
- QUIC_RELOADABLE_FLAG_COUNT(quic_simple_inflight_time);
+ if (simple_inflight_time_) {
+ QUIC_RELOADABLE_FLAG_COUNT(quic_simple_inflight_time);
+ }
}
QuicUnackedPacketMap::~QuicUnackedPacketMap() {