Index: net/ssl/ssl_client_auth_cache.cc |
diff --git a/net/ssl/ssl_client_auth_cache.cc b/net/ssl/ssl_client_auth_cache.cc |
index bfc5ade12389931559e7550dacd6bbc0ec17e0bd..c1fce7838662c350a9adc051e26c5f985e539571 100644 |
--- a/net/ssl/ssl_client_auth_cache.cc |
+++ b/net/ssl/ssl_client_auth_cache.cc |
@@ -33,9 +33,10 @@ bool SSLClientAuthCache::Lookup(const HostPortPair& server, |
} |
void SSLClientAuthCache::Add(const HostPortPair& server, |
- X509Certificate* certificate, |
- SSLPrivateKey* private_key) { |
- cache_[server] = std::make_pair(certificate, private_key); |
+ scoped_refptr<X509Certificate> certificate, |
+ scoped_refptr<SSLPrivateKey> private_key) { |
+ cache_[server] = |
+ std::make_pair(std::move(certificate), std::move(private_key)); |
// TODO(wtc): enforce a maximum number of entries. |
} |