| Index: net/quic/core/quic_sent_packet_manager.cc
|
| diff --git a/net/quic/core/quic_sent_packet_manager.cc b/net/quic/core/quic_sent_packet_manager.cc
|
| index 6c61884169abd39b985b22c14d53cb0acc26e995..1c6d6c540834da04820b6a6b445152d0586d7c5b 100644
|
| --- a/net/quic/core/quic_sent_packet_manager.cc
|
| +++ b/net/quic/core/quic_sent_packet_manager.cc
|
| @@ -75,7 +75,8 @@ QuicSentPacketManager::QuicSentPacketManager(
|
| congestion_control_type,
|
| stats,
|
| initial_congestion_window_)),
|
| - loss_algorithm_(new GeneralLossAlgorithm(loss_type)),
|
| + loss_algorithm_(&general_loss_algorithm_),
|
| + general_loss_algorithm_(loss_type),
|
| n_connection_simulation_(false),
|
| receive_buffer_bytes_(kDefaultSocketReceiveBuffer),
|
| least_packet_awaited_by_peer_(1),
|
| @@ -151,11 +152,11 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
|
| }
|
| if (config.HasReceivedConnectionOptions() &&
|
| ContainsQuicTag(config.ReceivedConnectionOptions(), kTIME)) {
|
| - loss_algorithm_.reset(new GeneralLossAlgorithm(kTime));
|
| + general_loss_algorithm_.SetLossDetectionType(kTime);
|
| }
|
| if (config.HasReceivedConnectionOptions() &&
|
| ContainsQuicTag(config.ReceivedConnectionOptions(), kATIM)) {
|
| - loss_algorithm_.reset(new GeneralLossAlgorithm(kAdaptiveTime));
|
| + general_loss_algorithm_.SetLossDetectionType(kAdaptiveTime);
|
| }
|
| if (FLAGS_quic_loss_recovery_use_largest_acked &&
|
| config.HasClientSentConnectionOption(kUNDO, perspective_)) {
|
|
|