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

Unified Diff: chrome/browser/extensions/api/platform_keys/platform_keys_api.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/api/platform_keys/platform_keys_api.cc
diff --git a/chrome/browser/extensions/api/platform_keys/platform_keys_api.cc b/chrome/browser/extensions/api/platform_keys/platform_keys_api.cc
index b2b80ad07849d1e9e1b65304322ac0ff8576be10..cd818aef348a3e8447052e10b6670028b94adfa9 100644
--- a/chrome/browser/extensions/api/platform_keys/platform_keys_api.cc
+++ b/chrome/browser/extensions/api/platform_keys/platform_keys_api.cc
@@ -124,7 +124,7 @@ PlatformKeysInternalGetPublicKeyFunction::
ExtensionFunction::ResponseAction
PlatformKeysInternalGetPublicKeyFunction::Run() {
- scoped_ptr<api_pki::GetPublicKey::Params> params(
+ std::unique_ptr<api_pki::GetPublicKey::Params> params(
api_pki::GetPublicKey::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
@@ -168,7 +168,7 @@ PlatformKeysInternalSelectClientCertificatesFunction::
ExtensionFunction::ResponseAction
PlatformKeysInternalSelectClientCertificatesFunction::Run() {
- scoped_ptr<api_pki::SelectClientCertificates::Params> params(
+ std::unique_ptr<api_pki::SelectClientCertificates::Params> params(
api_pki::SelectClientCertificates::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
@@ -199,7 +199,7 @@ PlatformKeysInternalSelectClientCertificatesFunction::Run() {
}
}
- scoped_ptr<net::CertificateList> client_certs;
+ std::unique_ptr<net::CertificateList> client_certs;
if (params->details.client_certs) {
client_certs.reset(new net::CertificateList);
for (const std::vector<char>& client_cert_der :
@@ -239,7 +239,7 @@ PlatformKeysInternalSelectClientCertificatesFunction::Run() {
}
void PlatformKeysInternalSelectClientCertificatesFunction::
- OnSelectedCertificates(scoped_ptr<net::CertificateList> matches,
+ OnSelectedCertificates(std::unique_ptr<net::CertificateList> matches,
const std::string& error_message) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
@@ -282,7 +282,7 @@ PlatformKeysInternalSignFunction::~PlatformKeysInternalSignFunction() {
}
ExtensionFunction::ResponseAction PlatformKeysInternalSignFunction::Run() {
- scoped_ptr<api_pki::Sign::Params> params(
+ std::unique_ptr<api_pki::Sign::Params> params(
api_pki::Sign::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
std::string platform_keys_token_id;
@@ -348,7 +348,7 @@ ExtensionFunction::ResponseAction
PlatformKeysVerifyTLSServerCertificateFunction::Run() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- scoped_ptr<api_pk::VerifyTLSServerCertificate::Params> params(
+ std::unique_ptr<api_pk::VerifyTLSServerCertificate::Params> params(
api_pk::VerifyTLSServerCertificate::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());

Powered by Google App Engine
This is Rietveld 408576698