| 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 34bb9726f38266d40b64007883d9245618620d04..60fd0f5cf6b7b07e8723307cc15c59a77f468421 100644
|
| --- a/net/quic/quic_sent_packet_manager.cc
|
| +++ b/net/quic/quic_sent_packet_manager.cc
|
| @@ -15,7 +15,6 @@
|
| #include "net/quic/quic_flags.h"
|
| #include "net/quic/quic_utils_chromium.h"
|
|
|
| -using std::make_pair;
|
| using std::max;
|
| using std::min;
|
|
|
| @@ -329,7 +328,7 @@ void QuicSentPacketManager::HandleAckForSentPackets(
|
| // If data is associated with the most recent transmission of this
|
| // packet, then inform the caller.
|
| if (it->in_flight) {
|
| - packets_acked_.push_back(make_pair(sequence_number, *it));
|
| + packets_acked_.push_back(std::make_pair(sequence_number, *it));
|
| }
|
| MarkPacketHandled(sequence_number, *it, delta_largest_observed);
|
| }
|
| @@ -561,12 +560,7 @@ bool QuicSentPacketManager::OnPacketSent(
|
| DCHECK(!unacked_packets_.IsUnacked(sequence_number));
|
| LOG_IF(DFATAL, bytes == 0) << "Cannot send empty packets.";
|
|
|
| - if (original_sequence_number == 0) {
|
| - if (!FLAGS_quic_ack_notifier_informed_on_serialized &&
|
| - serialized_packet->retransmittable_frames) {
|
| - ack_notifier_manager_.OnSerializedPacket(*serialized_packet);
|
| - }
|
| - } else {
|
| + if (original_sequence_number != 0) {
|
| PendingRetransmissionMap::iterator it =
|
| pending_retransmissions_.find(original_sequence_number);
|
| if (it != pending_retransmissions_.end()) {
|
| @@ -598,8 +592,8 @@ bool QuicSentPacketManager::OnPacketSent(
|
| // Since FEC packets should also be counted towards the congestion window,
|
| // consider them as retransmittable for the purposes of congestion control.
|
| HasRetransmittableData has_congestion_controlled_data =
|
| - serialized_packet->packet->is_fec_packet() ?
|
| - HAS_RETRANSMITTABLE_DATA : has_retransmittable_data;
|
| + serialized_packet->is_fec_packet ? HAS_RETRANSMITTABLE_DATA
|
| + : has_retransmittable_data;
|
| const bool in_flight =
|
| send_algorithm_->OnPacketSent(sent_time,
|
| unacked_packets_.bytes_in_flight(),
|
| @@ -793,7 +787,7 @@ void QuicSentPacketManager::InvokeLossDetection(QuicTime time) {
|
| // should be recorded as a loss to the send algorithm, but not retransmitted
|
| // until it's known whether the FEC packet arrived.
|
| ++stats_->packets_lost;
|
| - packets_lost_.push_back(make_pair(sequence_number, transmission_info));
|
| + packets_lost_.push_back(std::make_pair(sequence_number, transmission_info));
|
| DVLOG(1) << ENDPOINT << "Lost packet " << sequence_number;
|
|
|
| if (transmission_info.retransmittable_frames != nullptr) {
|
|
|