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

Unified Diff: extensions/common/cast/cast_cert_validator.h

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 months 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: extensions/common/cast/cast_cert_validator.h
diff --git a/extensions/common/cast/cast_cert_validator.h b/extensions/common/cast/cast_cert_validator.h
index c435ebb8776f312edfb7c6bee440f028175c6d4f..8f2f4def340a01456a95867f2a7e819e1db3e081 100644
--- a/extensions/common/cast/cast_cert_validator.h
+++ b/extensions/common/cast/cast_cert_validator.h
@@ -5,12 +5,12 @@
#ifndef EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_
#define EXTENSIONS_COMMON_CAST_CAST_CERT_VALIDATOR_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
#include "base/time/time.h"
@@ -75,7 +75,7 @@ class CertVerificationContext {
// (i.e. is it for audio-only devices or is it unrestricted?)
bool VerifyDeviceCert(const std::vector<std::string>& certs,
const base::Time::Exploded& time,
- scoped_ptr<CertVerificationContext>* context,
+ std::unique_ptr<CertVerificationContext>* context,
CastDeviceCertPolicy* policy) WARN_UNUSED_RESULT;
// Exposed only for unit-tests, not for use in production code.
@@ -83,10 +83,9 @@ bool VerifyDeviceCert(const std::vector<std::string>& certs,
//
// Constructs a VerificationContext that uses the provided public key.
// The common name will be hardcoded to some test value.
-scoped_ptr<CertVerificationContext> CertVerificationContextImplForTest(
+std::unique_ptr<CertVerificationContext> CertVerificationContextImplForTest(
const base::StringPiece& spki);
-
} // namespace cast_crypto
} // namespace api
} // namespace extensions
« no previous file with comments | « extensions/common/api/sockets/sockets_manifest_permission_unittest.cc ('k') | extensions/common/cast/cast_cert_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698