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

Unified Diff: net/ssl/threaded_ssl_private_key.cc

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: . Created 5 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/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 c96598f3cbfb96ac2349db63ae09ecd196cce5bb..116986208494bb7f23cb799e2caa24aa8de7f537 100644
--- a/net/ssl/threaded_ssl_private_key.cc
+++ b/net/ssl/threaded_ssl_private_key.cc
@@ -5,6 +5,7 @@
#include "net/ssl/threaded_ssl_private_key.h"
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/location.h"
@@ -50,10 +51,9 @@ class ThreadedSSLPrivateKey::Core
ThreadedSSLPrivateKey::ThreadedSSLPrivateKey(
scoped_ptr<ThreadedSSLPrivateKey::Delegate> delegate,
scoped_refptr<base::TaskRunner> task_runner)
- : core_(new Core(delegate.Pass())),
- task_runner_(task_runner.Pass()),
- weak_factory_(this) {
-}
+ : core_(new Core(std::move(delegate))),
+ task_runner_(std::move(task_runner)),
+ weak_factory_(this) {}
SSLPrivateKey::Type ThreadedSSLPrivateKey::GetType() {
return core_->delegate()->GetType();

Powered by Google App Engine
This is Rietveld 408576698