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

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

Issue 968513002: Land Recent QUIC Changes until 2/21/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed const from members of TransmissionInfo struct. 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 | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_ack_notifier_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/strike_register.cc
diff --git a/net/quic/crypto/strike_register.cc b/net/quic/crypto/strike_register.cc
index bc2dd69dc0b776c87a3e163495ee88038761f24c..87aae0d8fc7d906b22de8c6203450083067fa3f4 100644
--- a/net/quic/crypto/strike_register.cc
+++ b/net/quic/crypto/strike_register.cc
@@ -495,14 +495,13 @@ void StrikeRegister::ValidateTree(
CHECK_EQ(used_external_nodes->count(ext), 0u);
used_external_nodes->insert(ext);
const uint8* bytes = external_node(ext);
- for (vector<pair<unsigned, bool>>::const_iterator j = bits.begin();
- j != bits.end(); j++) {
- unsigned byte = j->first / 8;
+ for (const pair<unsigned, bool>& pair : bits) {
+ unsigned byte = pair.first / 8;
DCHECK_LE(byte, 0xffu);
- unsigned new_bit = j->first % 8;
+ unsigned bit_new = pair.first % 8;
static const uint8 kMasks[8] =
{0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01};
- CHECK_EQ((bytes[byte] & kMasks[new_bit]) != 0, j->second);
+ CHECK_EQ((bytes[byte] & kMasks[bit_new]) != 0, pair.second);
}
} else {
uint32 inter = i->child(child);
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_ack_notifier_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698