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

Unified Diff: ios/web/net/cert_verifier_block_adapter.cc

Issue 1861593005: Convert //ios 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
« no previous file with comments | « ios/web/net/cert_verifier_block_adapter.h ('k') | ios/web/net/cert_verifier_block_adapter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/cert_verifier_block_adapter.cc
diff --git a/ios/web/net/cert_verifier_block_adapter.cc b/ios/web/net/cert_verifier_block_adapter.cc
index dd3a83605b727c6dc262d20c7cba77cf6dca99a5..781e4832ba13cf619ea4e6a0bf8df9ac75b68420 100644
--- a/ios/web/net/cert_verifier_block_adapter.cc
+++ b/ios/web/net/cert_verifier_block_adapter.cc
@@ -35,7 +35,7 @@ struct VerificationContext
// verification request is not cancelled. CertVerifierBlockAdapter::Verify
// guarantees its completion handler to be called, which will not happen if
// verification request is cancelled.
- scoped_ptr<net::CertVerifier::Request> request;
+ std::unique_ptr<net::CertVerifier::Request> request;
// The result of certificate verification.
net::CertVerifyResult result;
// Certificate being verified.
@@ -84,7 +84,7 @@ void CertVerifierBlockAdapter::Verify(
net::CompletionCallback callback = base::BindBlock(^(int error) {
completion_handler(context->result, error);
});
- scoped_ptr<net::CertVerifier::Request> request;
+ std::unique_ptr<net::CertVerifier::Request> request;
int error = cert_verifier_->Verify(params.cert.get(), params.hostname,
params.ocsp_response, params.flags,
params.crl_set.get(), &(context->result),
« no previous file with comments | « ios/web/net/cert_verifier_block_adapter.h ('k') | ios/web/net/cert_verifier_block_adapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698