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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/crypto/local_strike_register_client.cc
diff --git a/net/quic/crypto/local_strike_register_client.cc b/net/quic/crypto/local_strike_register_client.cc
index 1f78d9833d597b2414d714da5d0e74e25a119cf6..5f61ed5a453fc1627b8e782da02fd309cd276882 100644
--- a/net/quic/crypto/local_strike_register_client.cc
+++ b/net/quic/crypto/local_strike_register_client.cc
@@ -17,8 +17,11 @@ LocalStrikeRegisterClient::LocalStrikeRegisterClient(
uint32 window_secs,
const uint8 orbit[8],
StrikeRegister::StartupType startup)
- : strike_register_(max_entries, current_time_external, window_secs,
- orbit, startup) {
+ : strike_register_(max_entries,
+ current_time_external,
+ window_secs,
+ orbit,
+ startup) {
}
bool LocalStrikeRegisterClient::IsKnownOrbit(StringPiece orbit) const {
@@ -30,15 +33,17 @@ bool LocalStrikeRegisterClient::IsKnownOrbit(StringPiece orbit) const {
}
void LocalStrikeRegisterClient::VerifyNonceIsValidAndUnique(
- StringPiece nonce, QuicWallTime now, ResultCallback* cb) {
+ StringPiece nonce,
+ QuicWallTime now,
+ ResultCallback* cb) {
bool nonce_is_valid_and_unique;
if (nonce.length() != kNonceSize) {
nonce_is_valid_and_unique = false;
} else {
base::AutoLock lock(m_);
- nonce_is_valid_and_unique = strike_register_.Insert(
- reinterpret_cast<const uint8*>(nonce.data()),
- static_cast<uint32>(now.ToUNIXSeconds()));
+ nonce_is_valid_and_unique =
+ strike_register_.Insert(reinterpret_cast<const uint8*>(nonce.data()),
+ static_cast<uint32>(now.ToUNIXSeconds()));
}
// m_ must not be held when the ResultCallback runs.

Powered by Google App Engine
This is Rietveld 408576698