Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: webrtc/modules/remote_bitrate_estimator/bwe_defines.cc

Issue 2717973005: Test field trial group with startswith rather than equals. (Closed)
Patch Set: Added IsEnabled() convenience function Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/remote_bitrate_estimator/bwe_defines.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/bwe_defines.cc b/webrtc/modules/remote_bitrate_estimator/bwe_defines.cc
index 69769f035bb011229faf4ae717641b41d4349931..6c772120c8e16c69e9b26af18b60f73347e5e04c 100644
--- a/webrtc/modules/remote_bitrate_estimator/bwe_defines.cc
+++ b/webrtc/modules/remote_bitrate_estimator/bwe_defines.cc
@@ -18,8 +18,7 @@ namespace congestion_controller {
int GetMinBitrateBps() {
constexpr int kAudioMinBitrateBps = 5000;
constexpr int kMinBitrateBps = 10000;
- if (webrtc::field_trial::FindFullName("WebRTC-Audio-SendSideBwe") ==
- "Enabled") {
+ if (webrtc::field_trial::IsEnabled("WebRTC-Audio-SendSideBwe")) {
return kAudioMinBitrateBps;
}
return kMinBitrateBps;

Powered by Google App Engine
This is Rietveld 408576698