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

Unified Diff: content/renderer/media/rtc_certificate_generator.cc

Issue 1946553002: WebRTC's scoped_ptr and scoped_ptr.h are going away, so stop using them (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
Index: content/renderer/media/rtc_certificate_generator.cc
diff --git a/content/renderer/media/rtc_certificate_generator.cc b/content/renderer/media/rtc_certificate_generator.cc
index 2928fa6b48ccd26f63e4d1c419dd0f0e043a97a4..5344feda4a87478be93fe06c585f7a3f85c4cf9f 100644
--- a/content/renderer/media/rtc_certificate_generator.cc
+++ b/content/renderer/media/rtc_certificate_generator.cc
@@ -76,7 +76,7 @@ class RTCCertificateIdentityObserver
GURL first_party_for_cookies,
rtc::Optional<uint64_t> expires_ms) {
DCHECK(signaling_thread_->BelongsToCurrentThread());
- rtc::scoped_ptr<PeerConnectionIdentityStore> store(
+ std::unique_ptr<PeerConnectionIdentityStore> store(
new PeerConnectionIdentityStore(main_thread_, signaling_thread_, url,
first_party_for_cookies));
// Request identity with |this| as the observer. OnSuccess/OnFailure will be
@@ -103,10 +103,10 @@ class RTCCertificateIdentityObserver
rtc::kPemTypeRsaPrivateKey,
reinterpret_cast<const unsigned char*>(der_private_key.data()),
der_private_key.length());
- OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity>(
+ OnSuccess(std::unique_ptr<rtc::SSLIdentity>(
rtc::SSLIdentity::FromPEMStrings(pem_key, pem_cert)));
}
- void OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity> identity) override {
+ void OnSuccess(std::unique_ptr<rtc::SSLIdentity> identity) override {
DCHECK(signaling_thread_->BelongsToCurrentThread());
DCHECK(observer_);
rtc::scoped_refptr<rtc::RTCCertificate> certificate =

Powered by Google App Engine
This is Rietveld 408576698