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

Unified Diff: components/webcrypto/blink_key_handle.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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/webcrypto/algorithms/rsa_oaep_unittest.cc ('k') | components/webcrypto/jwk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/blink_key_handle.cc
diff --git a/components/webcrypto/blink_key_handle.cc b/components/webcrypto/blink_key_handle.cc
index 6b8c1f4cdbaa9a59574c159cdfe1e99523cb76a9..012c7c0b7ba884fe50414058c2c73277eb6cd8ab 100644
--- a/components/webcrypto/blink_key_handle.cc
+++ b/components/webcrypto/blink_key_handle.cc
@@ -4,6 +4,8 @@
#include "components/webcrypto/blink_key_handle.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/macros.h"
#include "components/webcrypto/crypto_data.h"
@@ -63,7 +65,7 @@ class AsymKey : public Key {
public:
AsymKey(crypto::ScopedEVP_PKEY pkey,
const std::vector<uint8_t>& serialized_key_data)
- : Key(CryptoData(serialized_key_data)), pkey_(pkey.Pass()) {}
+ : Key(CryptoData(serialized_key_data)), pkey_(std::move(pkey)) {}
AsymKey* AsAsymKey() override { return this; }
@@ -105,7 +107,7 @@ blink::WebCryptoKeyHandle* CreateSymmetricKeyHandle(
blink::WebCryptoKeyHandle* CreateAsymmetricKeyHandle(
crypto::ScopedEVP_PKEY pkey,
const std::vector<uint8_t>& serialized_key_data) {
- return new AsymKey(pkey.Pass(), serialized_key_data);
+ return new AsymKey(std::move(pkey), serialized_key_data);
}
} // namespace webcrypto
« no previous file with comments | « components/webcrypto/algorithms/rsa_oaep_unittest.cc ('k') | components/webcrypto/jwk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698