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

Unified Diff: webrtc/media/engine/webrtcvideocapturer.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/media/engine/webrtcvideocapturer.cc
diff --git a/webrtc/media/engine/webrtcvideocapturer.cc b/webrtc/media/engine/webrtcvideocapturer.cc
index 5aac3f81acfdce2b4c05a479ee966b449e21c976..11458d1ed07f36d45ae95adcb15cb6d37397b772 100644
--- a/webrtc/media/engine/webrtcvideocapturer.cc
+++ b/webrtc/media/engine/webrtcvideocapturer.cc
@@ -230,12 +230,8 @@ void WebRtcVideoCapturer::OnSinkWantsChanged(const rtc::VideoSinkWants& wants) {
// calls, can't take lock.
RTC_DCHECK(module_);
- const std::string group_name =
- webrtc::field_trial::FindFullName("WebRTC-CVO");
-
- if (group_name == "Disabled") {
+ if (webrtc::field_trial::FindFullName("WebRTC-CVO").find("Disabled") == 0)
return;
- }
VideoCapturer::OnSinkWantsChanged(wants);
bool result = module_->SetApplyRotation(wants.rotation_applied);

Powered by Google App Engine
This is Rietveld 408576698