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

Unified Diff: media/blink/webcontentdecryptionmodule_impl.cc

Issue 1904253002: Convert //media/blink from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « media/blink/webcontentdecryptionmodule_impl.h ('k') | media/blink/webcontentdecryptionmoduleaccess_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webcontentdecryptionmodule_impl.cc
diff --git a/media/blink/webcontentdecryptionmodule_impl.cc b/media/blink/webcontentdecryptionmodule_impl.cc
index 45c0407fe822a721daefa09305b5d511b3b7c965..b54ebe2e8c0da6808004f6fc20017285bc5e2dcc 100644
--- a/media/blink/webcontentdecryptionmodule_impl.cc
+++ b/media/blink/webcontentdecryptionmodule_impl.cc
@@ -29,7 +29,7 @@ void WebContentDecryptionModuleImpl::Create(
const base::string16& key_system,
const blink::WebSecurityOrigin& security_origin,
const CdmConfig& cdm_config,
- scoped_ptr<blink::WebContentDecryptionModuleResult> result) {
+ std::unique_ptr<blink::WebContentDecryptionModuleResult> result) {
DCHECK(!security_origin.isNull());
DCHECK(!key_system.empty());
@@ -97,7 +97,7 @@ void WebContentDecryptionModuleImpl::setServerCertificate(
adapter_->SetServerCertificate(
std::vector<uint8_t>(server_certificate,
server_certificate + server_certificate_length),
- scoped_ptr<SimpleCdmPromise>(
+ std::unique_ptr<SimpleCdmPromise>(
new CdmResultPromise<>(result, std::string())));
}
« no previous file with comments | « media/blink/webcontentdecryptionmodule_impl.h ('k') | media/blink/webcontentdecryptionmoduleaccess_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698