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

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

Issue 1804563002: Refactor WebRTC certificate generation to use WebPassOwnPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 9a1ce11d5134f5a67923a98e5f581a00fd76c735..19ec478dacb54f71cd1d8703e2a8dd7efa780d7c 100644
--- a/content/renderer/media/rtc_certificate.cc
+++ b/content/renderer/media/rtc_certificate.cc
@@ -19,8 +19,9 @@ RTCCertificate::RTCCertificate(
RTCCertificate::~RTCCertificate() {
}
-RTCCertificate* RTCCertificate::shallowCopy() const {
- return new RTCCertificate(key_params_, certificate_);
+blink::WebPassOwnPtr<blink::WebRTCCertificate> RTCCertificate::shallowCopy()
+ const {
+ return blink::adoptWebPtr(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