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

Unified Diff: net/base/openssl_private_key_store_memory.cc

Issue 642403002: git cl format the first third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 years, 1 month 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/base/openssl_private_key_store_memory.cc
diff --git a/net/base/openssl_private_key_store_memory.cc b/net/base/openssl_private_key_store_memory.cc
index 4d6a287c2a7b75e63f1fd7a7e8392557a28b0af5..fc87fc09c6437a295dd32df183cc502ab8686f36 100644
--- a/net/base/openssl_private_key_store_memory.cc
+++ b/net/base/openssl_private_key_store_memory.cc
@@ -29,8 +29,8 @@ class MemoryKeyPairStore {
~MemoryKeyPairStore() {
base::AutoLock lock(lock_);
- for (std::vector<EVP_PKEY*>::iterator it = keys_.begin();
- it != keys_.end(); ++it) {
+ for (std::vector<EVP_PKEY*>::iterator it = keys_.begin(); it != keys_.end();
+ ++it) {
EVP_PKEY_free(*it);
}
}
@@ -44,8 +44,8 @@ class MemoryKeyPairStore {
bool HasPrivateKey(EVP_PKEY* pkey) {
base::AutoLock lock(lock_);
- for (std::vector<EVP_PKEY*>::iterator it = keys_.begin();
- it != keys_.end(); ++it) {
+ for (std::vector<EVP_PKEY*>::iterator it = keys_.begin(); it != keys_.end();
+ ++it) {
if (EVP_PKEY_cmp(*it, pkey) == 1)
return true;
}
@@ -61,8 +61,7 @@ class MemoryKeyPairStore {
} // namespace
-bool OpenSSLPrivateKeyStore::StoreKeyPair(const GURL& url,
- EVP_PKEY* pkey) {
+bool OpenSSLPrivateKeyStore::StoreKeyPair(const GURL& url, EVP_PKEY* pkey) {
return MemoryKeyPairStore::GetInstance()->StoreKeyPair(pkey);
}
@@ -70,5 +69,4 @@ bool OpenSSLPrivateKeyStore::HasPrivateKey(EVP_PKEY* pub_key) {
return MemoryKeyPairStore::GetInstance()->HasPrivateKey(pub_key);
}
-} // namespace net
-
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698