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

Unified Diff: net/quic/congestion_control/send_algorithm_interface.cc

Issue 1785663003: Deprecate FLAG_quic_use_new_tcp_sender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115885351
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 | « net/net.gypi ('k') | net/quic/congestion_control/tcp_cubic_bytes_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/send_algorithm_interface.cc
diff --git a/net/quic/congestion_control/send_algorithm_interface.cc b/net/quic/congestion_control/send_algorithm_interface.cc
index 20821a610226908b40c4462bb318adb672bd78b3..83de14f237763176f1e2fd8f9246bfeb5121740c 100644
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/congestion_control/send_algorithm_interface.cc
@@ -4,8 +4,6 @@
#include "net/quic/congestion_control/send_algorithm_interface.h"
-#include "net/quic/congestion_control/tcp_cubic_bytes_sender.h"
-#include "net/quic/congestion_control/tcp_cubic_sender.h"
#include "net/quic/congestion_control/tcp_cubic_sender_bytes.h"
#include "net/quic/congestion_control/tcp_cubic_sender_packets.h"
#include "net/quic/quic_flags.h"
@@ -27,39 +25,19 @@ SendAlgorithmInterface* SendAlgorithmInterface::Create(
kDefaultTCPMSS;
switch (congestion_control_type) {
case kCubic:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderPackets(
- clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window, max_congestion_window, stats);
- }
- return new TcpCubicSender(clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
+ return new TcpCubicSenderPackets(
+ clock, rtt_stats, false /* don't use Reno */,
+ initial_congestion_window, max_congestion_window, stats);
case kCubicBytes:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderBytes(
- clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window, max_congestion_window, stats);
- }
- return new TcpCubicBytesSender(
+ return new TcpCubicSenderBytes(
clock, rtt_stats, false /* don't use Reno */,
initial_congestion_window, max_congestion_window, stats);
case kReno:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderPackets(clock, rtt_stats, true /* use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
- }
- return new TcpCubicSender(clock, rtt_stats, true /* use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
- case kRenoBytes:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */,
+ return new TcpCubicSenderPackets(clock, rtt_stats, true /* use Reno */,
initial_congestion_window,
max_congestion_window, stats);
- }
- return new TcpCubicBytesSender(clock, rtt_stats, true /* use Reno */,
+ case kRenoBytes:
+ return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */,
initial_congestion_window,
max_congestion_window, stats);
case kBBR:
« no previous file with comments | « net/net.gypi ('k') | net/quic/congestion_control/tcp_cubic_bytes_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698