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

Unified Diff: net/ssl/threaded_ssl_private_key.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/threaded_ssl_private_key.h ('k') | net/test/embedded_test_server/default_handlers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/threaded_ssl_private_key.cc
diff --git a/net/ssl/threaded_ssl_private_key.cc b/net/ssl/threaded_ssl_private_key.cc
index d2f1d95ea430d6a7a097aa3f1ccc5212366fc8ab..93865add47d14608654e6839aeadeca95a85be95 100644
--- a/net/ssl/threaded_ssl_private_key.cc
+++ b/net/ssl/threaded_ssl_private_key.cc
@@ -30,7 +30,7 @@ void DoCallback(const base::WeakPtr<ThreadedSSLPrivateKey>& key,
class ThreadedSSLPrivateKey::Core
: public base::RefCountedThreadSafe<ThreadedSSLPrivateKey::Core> {
public:
- Core(scoped_ptr<ThreadedSSLPrivateKey::Delegate> delegate)
+ Core(std::unique_ptr<ThreadedSSLPrivateKey::Delegate> delegate)
: delegate_(std::move(delegate)) {}
ThreadedSSLPrivateKey::Delegate* delegate() { return delegate_.get(); }
@@ -45,11 +45,11 @@ class ThreadedSSLPrivateKey::Core
friend class base::RefCountedThreadSafe<Core>;
~Core() {}
- scoped_ptr<ThreadedSSLPrivateKey::Delegate> delegate_;
+ std::unique_ptr<ThreadedSSLPrivateKey::Delegate> delegate_;
};
ThreadedSSLPrivateKey::ThreadedSSLPrivateKey(
- scoped_ptr<ThreadedSSLPrivateKey::Delegate> delegate,
+ std::unique_ptr<ThreadedSSLPrivateKey::Delegate> delegate,
scoped_refptr<base::TaskRunner> task_runner)
: core_(new Core(std::move(delegate))),
task_runner_(std::move(task_runner)),
« no previous file with comments | « net/ssl/threaded_ssl_private_key.h ('k') | net/test/embedded_test_server/default_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698