| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| // Define webrtc::runtime_features::IsFeatureEnabled to provide webrtc with a |
| // chromium runtime flags access. |
| |
| #include "base/feature_list.h" |
| #include "third_party/webrtc/system_wrappers/include/runtime_enabled_features.h" |
| |
| namespace webrtc { |
| |
| namespace runtime_enabled_features { |
| |
| const base::Feature kWebRtcDualStreamMode{"WebRTC-DualStreamMode", |
| base::FEATURE_DISABLED_BY_DEFAULT}; |
| |
| bool IsFeatureEnabled(std::string feature_name) { |
| if (feature_name == kDualStreamModeFeatureName) |
| return base::FeatureList::IsEnabled(kWebRtcDualStreamMode); |
| return false; |
| } |
| |
| } // namespace runtime_enabled_features |
| |
| } // namespace webrtc |