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

Unified Diff: net/quic/quic_framer.cc

Issue 11961022: Remove default constructors for QuicTime and QuicTime::Delta and used static Zero() methods instead… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: net/quic/quic_framer.cc
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc
index 570cd182c18233fde3a57fe54eef79620d24b193..5a5a1fe148e6f85335deb596f64302c75c7f74d7 100644
--- a/net/quic/quic_framer.cc
+++ b/net/quic/quic_framer.cc
@@ -12,6 +12,7 @@
#include "net/quic/quic_utils.h"
using base::StringPiece;
+using std::make_pair;
using std::map;
using std::numeric_limits;
@@ -499,8 +500,9 @@ bool QuicFramer::ProcessQuicCongestionFeedbackFrame(
return false;
}
- inter_arrival->received_packet_times[smallest_received] =
- QuicTime::FromMicroseconds(time_received_us);
+ inter_arrival->received_packet_times.insert(
+ make_pair(smallest_received,
+ QuicTime::FromMicroseconds(time_received_us)));
for (int i = 0; i < num_received_packets - 1; ++i) {
uint16 sequence_delta;
@@ -517,8 +519,9 @@ bool QuicFramer::ProcessQuicCongestionFeedbackFrame(
return false;
}
QuicPacketSequenceNumber packet = smallest_received + sequence_delta;
- inter_arrival->received_packet_times[packet] =
- QuicTime::FromMicroseconds(time_received_us + time_delta_us);
+ inter_arrival->received_packet_times.insert(
+ make_pair(packet, QuicTime::FromMicroseconds(time_received_us +
+ time_delta_us)));
}
}
break;

Powered by Google App Engine
This is Rietveld 408576698