Index: remoting/protocol/jingle_stream_connector.cc |
diff --git a/remoting/protocol/jingle_stream_connector.cc b/remoting/protocol/jingle_stream_connector.cc |
index 27fa3319431cc6bfb067677bcd146c213bc6db22..4f0735000c84f2d4c71b6230f8975a5662cf4ae6 100644 |
--- a/remoting/protocol/jingle_stream_connector.cc |
+++ b/remoting/protocol/jingle_stream_connector.cc |
@@ -35,8 +35,7 @@ net::SSLClientSocket* CreateSSLClientSocket( |
// Certificate provided by the host doesn't need authority. |
net::SSLConfig::CertAndStatus cert_and_status; |
cert_and_status.cert_status = net::CERT_STATUS_AUTHORITY_INVALID; |
- cert_and_status.cert = net::X509Certificate::CreateFromBytes( |
- cert_der.data(), cert_der.length()); |
+ cert_and_status.cert_der = cert_der; |
ssl_config.allowed_bad_certs.push_back(cert_and_status); |
// SSLClientSocket takes ownership of the adapter. |