| Index: content/renderer/media/webrtc/peer_connection_dependency_factory.cc
|
| diff --git a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
|
| index f503eebadc43a48e943c7a61a8e4cd1a07221f98..54cbbb0c7bd3d17b2aaafe1bd08b437b2a2731c5 100644
|
| --- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
|
| +++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
|
| @@ -24,6 +24,7 @@
|
| #include "build/build_config.h"
|
| #include "content/common/media/media_stream_messages.h"
|
| #include "content/public/common/content_client.h"
|
| +#include "content/public/common/content_features.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/feature_h264_with_openh264_ffmpeg.h"
|
| #include "content/public/common/features.h"
|
| @@ -239,8 +240,7 @@ void PeerConnectionDependencyFactory::InitializeSignalingThread(
|
| decoder_factory.reset(new RTCVideoDecoderFactory(gpu_factories));
|
|
|
| if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding) ||
|
| - !cmd_line->GetSwitchValueASCII(switches::kDisableWebRtcHWEncoding)
|
| - .empty()) {
|
| + base::FeatureList::IsEnabled(features::kWebRtcHWH264EncodingAndroid)) {
|
| encoder_factory.reset(new RTCVideoEncoderFactory(gpu_factories));
|
| }
|
| }
|
|
|