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

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

Issue 2147413002: WebRTCCertificateGenerator should not use std::string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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 6345ac537cc509d894d45c209aa19728925881ae..16a57a7545f8a5c20cef3223eb7c513a598f4dd7 100644
--- a/content/renderer/media/rtc_certificate.cc
+++ b/content/renderer/media/rtc_certificate.cc
@@ -28,7 +28,9 @@ uint64_t RTCCertificate::expires() const {
blink::WebRTCCertificatePEM RTCCertificate::toPEM() const {
rtc::RTCCertificatePEM pem = certificate_->ToPEM();
- return blink::WebRTCCertificatePEM(pem.private_key(), pem.certificate());
+ return blink::WebRTCCertificatePEM(
+ blink::WebString::fromUTF8(pem.private_key()),
+ blink::WebString::fromUTF8(pem.certificate()));
}
bool RTCCertificate::equals(const blink::WebRTCCertificate& other) const {
« no previous file with comments | « no previous file | content/renderer/media/rtc_certificate_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698