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

Unified Diff: net/quic/quic_packet_creator.cc

Issue 1663703003: use std::unordered_map and std::unordered_set in QUIC code instead of (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113259990
Patch Set: rebase Created 4 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
« no previous file with comments | « net/quic/quic_packet_creator.h ('k') | net/quic/quic_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_packet_creator.cc
diff --git a/net/quic/quic_packet_creator.cc b/net/quic/quic_packet_creator.cc
index 794d6b2687f23de62f513dba37dd75907b043439..68ce339b9fcbb9b599131b0039decd6f2a33ac41 100644
--- a/net/quic/quic_packet_creator.cc
+++ b/net/quic/quic_packet_creator.cc
@@ -849,7 +849,7 @@ void QuicPacketCreator::SetCurrentPath(
/*is_fec_timeout=*/false);
// Save current packet number and load switching path's packet number.
multipath_packet_number_[packet_.path_id] = packet_.packet_number;
- hash_map<QuicPathId, QuicPacketNumber>::iterator it =
+ std::unordered_map<QuicPathId, QuicPacketNumber>::iterator it =
multipath_packet_number_.find(path_id);
// If path_id is not in the map, it's a new path. Set packet_number to 0.
packet_.packet_number = it == multipath_packet_number_.end() ? 0 : it->second;
« no previous file with comments | « net/quic/quic_packet_creator.h ('k') | net/quic/quic_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698