Index: net/quic/quic_sent_packet_manager.cc |
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc |
index 9bc0f87f2ac906c371828d8f5c1d1940562ad8fe..30f34e38fa143ce14b72d3786556c24974969ada 100644 |
--- a/net/quic/quic_sent_packet_manager.cc |
+++ b/net/quic/quic_sent_packet_manager.cc |
@@ -63,19 +63,22 @@ bool HasCryptoHandshake(const TransmissionInfo& transmission_info) { |
#define ENDPOINT (is_server_ ? "Server: " : " Client: ") |
-QuicSentPacketManager::QuicSentPacketManager(bool is_server, |
- const QuicClock* clock, |
- QuicConnectionStats* stats, |
- CongestionFeedbackType type, |
- LossDetectionType loss_type) |
+QuicSentPacketManager::QuicSentPacketManager( |
+ bool is_server, |
+ const QuicClock* clock, |
+ QuicConnectionStats* stats, |
+ CongestionControlType congestion_control_type, |
+ LossDetectionType loss_type) |
: unacked_packets_(), |
is_server_(is_server), |
clock_(clock), |
stats_(stats), |
debug_delegate_(NULL), |
network_change_visitor_(NULL), |
- send_algorithm_( |
- SendAlgorithmInterface::Create(clock, &rtt_stats_, type, stats)), |
+ send_algorithm_(SendAlgorithmInterface::Create(clock, |
+ &rtt_stats_, |
+ congestion_control_type, |
+ stats)), |
loss_algorithm_(LossDetectionInterface::Create(loss_type)), |
largest_observed_(0), |
first_rto_transmission_(0), |
@@ -104,7 +107,7 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) { |
QuicTime::Delta::FromSeconds(FLAGS_quic_recent_min_rtt_window_s)); |
} |
send_algorithm_.reset( |
- SendAlgorithmInterface::Create(clock_, &rtt_stats_, kTCPBBR, stats_)); |
+ SendAlgorithmInterface::Create(clock_, &rtt_stats_, kBBR, stats_)); |
} |
if (config.congestion_feedback() == kPACE || |
(config.HasReceivedConnectionOptions() && |