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

Unified Diff: third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp

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
Index: third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp b/third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
index f3b9d87694749ab1ee5be47bbe7ba3d87ac5ef20..15269c12732232494bab1805b34411bfd2861559 100644
--- a/third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
@@ -32,12 +32,12 @@
namespace blink {
-RTCCertificate::RTCCertificate(WebRTCCertificate* certificate)
- : m_certificate(adoptPtr(certificate))
+RTCCertificate::RTCCertificate(WebPassOwnPtr<WebRTCCertificate> certificate)
+ : m_certificate(certificate.release())
{
}
-WebRTCCertificate* RTCCertificate::certificateShallowCopy() const
+WebPassOwnPtr<WebRTCCertificate> RTCCertificate::certificateShallowCopy() const
{
return m_certificate->shallowCopy();
}

Powered by Google App Engine
This is Rietveld 408576698