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

Unified Diff: components/webcrypto/algorithms/asymmetric_key_util.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/web_view/web_view_impl.cc ('k') | components/webcrypto/algorithms/ec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/algorithms/asymmetric_key_util.cc
diff --git a/components/webcrypto/algorithms/asymmetric_key_util.cc b/components/webcrypto/algorithms/asymmetric_key_util.cc
index 74eb6c4a25b924b9bb56aff07f709992d8f44200..251c2775322e2b4a10a0a1a5fc0ce114c4bfa8b4 100644
--- a/components/webcrypto/algorithms/asymmetric_key_util.cc
+++ b/components/webcrypto/algorithms/asymmetric_key_util.cc
@@ -6,6 +6,7 @@
#include <openssl/pkcs12.h>
#include <stdint.h>
+#include <utility>
#include "components/webcrypto/algorithms/util.h"
#include "components/webcrypto/blink_key_handle.h"
@@ -71,7 +72,7 @@ Status CreateWebCryptoPublicKey(crypto::ScopedEVP_PKEY public_key,
return status;
*key = blink::WebCryptoKey::create(
- CreateAsymmetricKeyHandle(public_key.Pass(), spki_data),
+ CreateAsymmetricKeyHandle(std::move(public_key), spki_data),
blink::WebCryptoKeyTypePublic, extractable, algorithm, usages);
return Status::Success();
}
@@ -89,7 +90,7 @@ Status CreateWebCryptoPrivateKey(crypto::ScopedEVP_PKEY private_key,
return status;
*key = blink::WebCryptoKey::create(
- CreateAsymmetricKeyHandle(private_key.Pass(), pkcs8_data),
+ CreateAsymmetricKeyHandle(std::move(private_key), pkcs8_data),
blink::WebCryptoKeyTypePrivate, extractable, algorithm, usages);
return Status::Success();
}
« no previous file with comments | « components/web_view/web_view_impl.cc ('k') | components/webcrypto/algorithms/ec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698