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

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

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (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 | « content/renderer/media/rtc_certificate.h ('k') | content/renderer/media/rtc_certificate_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_certificate.cc
diff --git a/content/renderer/media/rtc_certificate.cc b/content/renderer/media/rtc_certificate.cc
index 19ec478dacb54f71cd1d8703e2a8dd7efa780d7c..7c2ff28923800490b00dad62bb6bdbc92c3fc423 100644
--- a/content/renderer/media/rtc_certificate.cc
+++ b/content/renderer/media/rtc_certificate.cc
@@ -4,6 +4,7 @@
#include "content/renderer/media/rtc_certificate.h"
+#include "base/memory/ptr_util.h"
#include "content/renderer/media/peer_connection_identity_store.h"
#include "url/gurl.h"
@@ -19,9 +20,8 @@ RTCCertificate::RTCCertificate(
RTCCertificate::~RTCCertificate() {
}
-blink::WebPassOwnPtr<blink::WebRTCCertificate> RTCCertificate::shallowCopy()
- const {
- return blink::adoptWebPtr(new RTCCertificate(key_params_, certificate_));
+std::unique_ptr<blink::WebRTCCertificate> RTCCertificate::shallowCopy() const {
+ return base::WrapUnique(new RTCCertificate(key_params_, certificate_));
}
const blink::WebRTCKeyParams& RTCCertificate::keyParams() const {
« no previous file with comments | « content/renderer/media/rtc_certificate.h ('k') | content/renderer/media/rtc_certificate_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698