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

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

Issue 2229393003: net: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/interval_test.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_buffered_packet_store.cc
diff --git a/net/quic/core/quic_buffered_packet_store.cc b/net/quic/core/quic_buffered_packet_store.cc
index db9e29d9d2d7bc33bfbcf8dcf851f88320b516ac..823a9ae7b494b04d562832789f7b450d5ec28c1a 100644
--- a/net/quic/core/quic_buffered_packet_store.cc
+++ b/net/quic/core/quic_buffered_packet_store.cc
@@ -79,15 +79,15 @@ EnqueuePacketResult QuicBufferedPacketStore::EnqueuePacket(
const QuicReceivedPacket& packet,
IPEndPoint server_address,
IPEndPoint client_address) {
- if (!ContainsKey(undecryptable_packets_, connection_id) &&
+ if (!base::ContainsKey(undecryptable_packets_, connection_id) &&
undecryptable_packets_.size() >= kDefaultMaxConnectionsInStore) {
// Drop the packet if store can't keep track of more connections.
return TOO_MANY_CONNECTIONS;
- } else if (!ContainsKey(undecryptable_packets_, connection_id)) {
+ } else if (!base::ContainsKey(undecryptable_packets_, connection_id)) {
undecryptable_packets_.emplace(
std::make_pair(connection_id, BufferedPacketList()));
}
- CHECK(ContainsKey(undecryptable_packets_, connection_id));
+ CHECK(base::ContainsKey(undecryptable_packets_, connection_id));
BufferedPacketList& queue =
undecryptable_packets_.find(connection_id)->second;
@@ -116,7 +116,7 @@ EnqueuePacketResult QuicBufferedPacketStore::EnqueuePacket(
bool QuicBufferedPacketStore::HasBufferedPackets(
QuicConnectionId connection_id) const {
- return ContainsKey(undecryptable_packets_, connection_id);
+ return base::ContainsKey(undecryptable_packets_, connection_id);
}
list<BufferedPacket> QuicBufferedPacketStore::DeliverPackets(
« no previous file with comments | « net/quic/core/interval_test.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698