| 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..904eb4128c318d6d60f53e72a05b382c9d420b0d 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 returning NULL in that case.
|
| +// 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) {
|
|
|