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

Unified Diff: net/quic/core/quic_received_packet_manager.cc

Issue 2464683002: adds std:: to stl types (#049) (Closed)
Patch Set: remove dead using std::foo declarations. Created 4 years, 2 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/quic/core/quic_protocol.h ('k') | net/quic/core/quic_received_packet_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_received_packet_manager.cc
diff --git a/net/quic/core/quic_received_packet_manager.cc b/net/quic/core/quic_received_packet_manager.cc
index 64769c86b5d7c85f332698548396c4b4692f347f..fdb41fc41d69d75a0215705103e9674cf776aae5 100644
--- a/net/quic/core/quic_received_packet_manager.cc
+++ b/net/quic/core/quic_received_packet_manager.cc
@@ -18,7 +18,6 @@
using std::max;
using std::min;
-using std::numeric_limits;
namespace net {
@@ -213,7 +212,7 @@ struct isTooLarge {
// Return true if the packet in p is too different from largest_observed_
// to express.
bool operator()(const std::pair<QuicPacketNumber, QuicTime>& p) const {
- return largest_observed_ - p.first >= numeric_limits<uint8_t>::max();
+ return largest_observed_ - p.first >= std::numeric_limits<uint8_t>::max();
}
};
} // namespace
@@ -240,7 +239,7 @@ const QuicFrame QuicReceivedPacketManager::GetUpdatedAckFrame(
for (PacketTimeVector::iterator it = ack_frame_.received_packet_times.begin();
it != ack_frame_.received_packet_times.end();) {
if (ack_frame_.largest_observed - it->first >=
- numeric_limits<uint8_t>::max()) {
+ std::numeric_limits<uint8_t>::max()) {
it = ack_frame_.received_packet_times.erase(it);
} else {
++it;
« no previous file with comments | « net/quic/core/quic_protocol.h ('k') | net/quic/core/quic_received_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698