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

Unified Diff: net/quic/crypto/crypto_utils.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/crypto_utils.cc
diff --git a/net/quic/crypto/crypto_utils.cc b/net/quic/crypto/crypto_utils.cc
index 2943396048946bc948bf7c15cbc58e8d199a19ab..27a98e66ed5073d2be2deb8dbf4e5f62cfd62c73 100644
--- a/net/quic/crypto/crypto_utils.cc
+++ b/net/quic/crypto/crypto_utils.cc
@@ -54,8 +54,8 @@ bool CryptoUtils::IsValidSNI(StringPiece sni) {
url::CanonHostInfo host_info;
string canonicalized_host(CanonicalizeHost(sni.as_string(), &host_info));
return !host_info.IsIPAddress() &&
- IsCanonicalizedHostCompliant(canonicalized_host, std::string()) &&
- sni.find_last_of('.') != string::npos;
+ IsCanonicalizedHostCompliant(canonicalized_host, std::string()) &&
+ sni.find_last_of('.') != string::npos;
}
// static
@@ -96,8 +96,8 @@ bool CryptoUtils::DeriveKeys(StringPiece premaster_secret,
nonce = nonce_storage;
}
- crypto::HKDF hkdf(premaster_secret, nonce, hkdf_input, key_bytes,
- nonce_prefix_bytes);
+ crypto::HKDF hkdf(
+ premaster_secret, nonce, hkdf_input, key_bytes, nonce_prefix_bytes);
if (perspective == SERVER) {
if (!out->encrypter->SetKey(hkdf.server_write_key()) ||
!out->encrypter->SetNoncePrefix(hkdf.server_write_iv()) ||

Powered by Google App Engine
This is Rietveld 408576698