gfe-relnote: (n/a) Deprecate --gfe2_reloadable_flag_quic_set_send_algorithm_noop_if_cc_type_unchanged.
PiperOrigin-RevId: 301168598
Change-Id: I084987baf95dde7177a7739d71e9610fe6fff850
diff --git a/quic/core/quic_sent_packet_manager.cc b/quic/core/quic_sent_packet_manager.cc
index 3e02c55..de43e39 100644
--- a/quic/core/quic_sent_packet_manager.cc
+++ b/quic/core/quic_sent_packet_manager.cc
@@ -1220,18 +1220,11 @@
void QuicSentPacketManager::SetSendAlgorithm(
CongestionControlType congestion_control_type) {
- if (GetQuicReloadableFlag(
- quic_set_send_algorithm_noop_if_cc_type_unchanged)) {
- if (send_algorithm_ && send_algorithm_->GetCongestionControlType() ==
- congestion_control_type) {
- QUIC_RELOADABLE_FLAG_COUNT_N(
- quic_set_send_algorithm_noop_if_cc_type_unchanged, 1, 2);
- return;
- }
- QUIC_RELOADABLE_FLAG_COUNT_N(
- quic_set_send_algorithm_noop_if_cc_type_unchanged, 2, 2);
- // Fallthrough to change the send algorithm.
+ if (send_algorithm_ &&
+ send_algorithm_->GetCongestionControlType() == congestion_control_type) {
+ return;
}
+
SetSendAlgorithm(SendAlgorithmInterface::Create(
clock_, &rtt_stats_, &unacked_packets_, congestion_control_type, random_,
stats_, initial_congestion_window_));