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

Unified Diff: net/quic/crypto/quic_crypto_server_config.cc

Issue 963333002: QUIC - use a range-based for loops. Sync'ing with the internal tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deprecating_FLAG_quic_record_send_time_before_write
Patch Set: Created 5 years, 10 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 | « no previous file | net/quic/crypto/strike_register.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_crypto_server_config.cc
diff --git a/net/quic/crypto/quic_crypto_server_config.cc b/net/quic/crypto/quic_crypto_server_config.cc
index 22a882387f666bd57a57aa3a8644aa82b177b7a5..c324db2a8a4eaa1ba4400f4c48deb6f0e68d00f4 100644
--- a/net/quic/crypto/quic_crypto_server_config.cc
+++ b/net/quic/crypto/quic_crypto_server_config.cc
@@ -1334,9 +1334,8 @@ QuicCryptoServerConfig::ParseConfigProtobuf(
return nullptr;
}
- for (vector<KeyExchange*>::const_iterator j = config->key_exchanges.begin();
- j != config->key_exchanges.end(); ++j) {
- if ((*j)->tag() == tag) {
+ for (const KeyExchange* key_exchange : config->key_exchanges) {
+ if (key_exchange->tag() == tag) {
LOG(WARNING) << "Duplicate key exchange in config: " << tag;
return nullptr;
}
« no previous file with comments | « no previous file | net/quic/crypto/strike_register.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698