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

Unified Diff: components/ownership/owner_key_util.cc

Issue 1552023002: Convert Pass()→std::move() in //components (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « components/gcm_driver/gcm_driver_desktop.cc ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ownership/owner_key_util.cc
diff --git a/components/ownership/owner_key_util.cc b/components/ownership/owner_key_util.cc
index a0497291c916db3e48ecbf0aaec6d241ec233f75..55b5fd42a9dfb23fc9e380827a138e7f938f5559 100644
--- a/components/ownership/owner_key_util.cc
+++ b/components/ownership/owner_key_util.cc
@@ -4,6 +4,8 @@
#include "components/ownership/owner_key_util.h"
+#include <utility>
+
namespace ownership {
///////////////////////////////////////////////////////////////////////////
@@ -18,8 +20,8 @@ PublicKey::~PublicKey() {
///////////////////////////////////////////////////////////////////////////
// PrivateKey
-PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key) : key_(key.Pass()) {
-}
+PrivateKey::PrivateKey(crypto::ScopedSECKEYPrivateKey key)
+ : key_(std::move(key)) {}
PrivateKey::~PrivateKey() {
}
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop.cc ('k') | components/ownership/owner_key_util_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698