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

Unified Diff: net/ssl/ssl_client_session_cache_openssl.cc

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 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/ssl/ssl_client_session_cache_openssl.h ('k') | net/ssl/ssl_client_session_cache_openssl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_client_session_cache_openssl.cc
diff --git a/net/ssl/ssl_client_session_cache_openssl.cc b/net/ssl/ssl_client_session_cache_openssl.cc
index a413eeeafe0c8a1cdc78751872056ef22650c874..d4812694c1b5ca0c5993c1099fc884b1cafb550d 100644
--- a/net/ssl/ssl_client_session_cache_openssl.cc
+++ b/net/ssl/ssl_client_session_cache_openssl.cc
@@ -52,7 +52,7 @@ void SSLClientSessionCacheOpenSSL::Insert(const std::string& cache_key,
base::AutoLock lock(lock_);
// Make a new entry.
- scoped_ptr<CacheEntry> entry(new CacheEntry);
+ std::unique_ptr<CacheEntry> entry(new CacheEntry);
entry->session.reset(SSL_SESSION_up_ref(session));
entry->creation_time = clock_->Now();
@@ -67,7 +67,7 @@ void SSLClientSessionCacheOpenSSL::Flush() {
}
void SSLClientSessionCacheOpenSSL::SetClockForTesting(
- scoped_ptr<base::Clock> clock) {
+ std::unique_ptr<base::Clock> clock) {
clock_ = std::move(clock);
}
« no previous file with comments | « net/ssl/ssl_client_session_cache_openssl.h ('k') | net/ssl/ssl_client_session_cache_openssl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698