+
+ // TODO(jiayl): we should always pass a FakeIdentityService so that DTLS
+ // is enabled by default like in Chrome (issue 2838).
+ FakeIdentityService* dtls_service = NULL;
+ bool dtls;
+ if (FindConstraint(constraints,
+ MediaConstraintsInterface::kEnableDtlsSrtp,
+ &dtls,
+ NULL) && dtls) {
+ dtls_service = new FakeIdentityService();
+ }