summaryrefslogtreecommitdiffstats
path: root/extensions/common/cast/cast_cert_validator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/cast/cast_cert_validator.cc')
-rw-r--r--extensions/common/cast/cast_cert_validator.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/common/cast/cast_cert_validator.cc b/extensions/common/cast/cast_cert_validator.cc
index 1bfa4e0..bafbe6a 100644
--- a/extensions/common/cast/cast_cert_validator.cc
+++ b/extensions/common/cast/cast_cert_validator.cc
@@ -8,6 +8,7 @@
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
+#include <utility>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
@@ -29,7 +30,7 @@ class CertVerificationContextImpl : public CertVerificationContext {
public:
// Takes ownership of the passed-in x509 object
explicit CertVerificationContextImpl(net::ScopedX509 x509)
- : x509_(x509.Pass()) {}
+ : x509_(std::move(x509)) {}
VerificationResult VerifySignatureOverData(
const base::StringPiece& signature,
@@ -148,7 +149,8 @@ VerificationResult VerifyDeviceCert(
}
if (context)
- context->reset(new CertVerificationContextImpl(device_cert_x509.Pass()));
+ context->reset(
+ new CertVerificationContextImpl(std::move(device_cert_x509)));
return VerificationResult();
}