Chromium Code Reviews| Index: content/renderer/media/peer_connection_identity_service.cc |
| diff --git a/content/renderer/media/peer_connection_identity_service.cc b/content/renderer/media/peer_connection_identity_service.cc |
| index f7bc85681022c8cd4accc626bbc59999eda2d6e9..041facaf2ce70249a96f4efa77c6411f8a431c12 100644 |
| --- a/content/renderer/media/peer_connection_identity_service.cc |
| +++ b/content/renderer/media/peer_connection_identity_service.cc |
| @@ -9,8 +9,17 @@ |
| namespace content { |
| -PeerConnectionIdentityService::PeerConnectionIdentityService(const GURL& origin) |
| - : origin_(origin), pending_observer_(NULL), pending_request_id_(0) {} |
| +PeerConnectionIdentityService* PeerConnectionIdentityService::Create( |
| + const GURL& origin) { |
| +// The crypto APIs needed for generating identities are not implenented for |
| +// OPENSSL yet (crbug/91512). So passing NULL to let Libjingle generate its own. |
|
Ami GONE FROM CHROMIUM
2013/08/09 18:58:58
Comment needs to be updated.
|
| +// TODO(jiayl): remove the #if once the crypto APIs are implemented for OPENSSL. |
| +#if defined(USE_OPENSSL) |
| + return NULL; |
| +#else |
| + return new PeerConnectionIdentityService(origin); |
| +#endif // defined(USE_OPENSSL) |
| +} |
| PeerConnectionIdentityService::~PeerConnectionIdentityService() { |
| if (pending_observer_) |
| @@ -39,6 +48,9 @@ bool PeerConnectionIdentityService::RequestIdentity( |
| return true; |
| } |
| +PeerConnectionIdentityService::PeerConnectionIdentityService(const GURL& origin) |
| + : origin_(origin), pending_observer_(NULL), pending_request_id_(0) {} |
| + |
| void PeerConnectionIdentityService::OnIdentityReady( |
| const std::string& certificate, |
| const std::string& private_key) { |