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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 853533002: Use proper pair type in range-based for map iterations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: supervised_user auto Created 5 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_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index ec3eecd9709c7d94c635e7b3d44f5119ad14f450..2e5afd23ff8cfa463c08c883b04ca15b3148534a 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -1147,7 +1147,7 @@ void QuicStreamFactory::InitializeCachedStateInCryptoConfig(
if (http_server_properties_) {
if (quic_supported_servers_at_startup_.empty()) {
- for (const std::pair<net::HostPortPair, net::AlternateProtocolInfo>&
+ for (const std::pair<const net::HostPortPair, net::AlternateProtocolInfo>&
key_value : http_server_properties_->alternate_protocol_map()) {
if (key_value.second.protocol == QUIC) {
quic_supported_servers_at_startup_.insert(key_value.first);

Powered by Google App Engine
This is Rietveld 408576698