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

Unified Diff: trunk/src/content/renderer/media/media_stream_audio_processor.cc

Issue 318373002: Revert 273044 "Change kEnableAudioTrackProcessing to a disable f..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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: trunk/src/content/renderer/media/media_stream_audio_processor.cc
===================================================================
--- trunk/src/content/renderer/media/media_stream_audio_processor.cc (revision 275780)
+++ trunk/src/content/renderer/media/media_stream_audio_processor.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/debug/trace_event.h"
+#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "content/public/common/content_switches.h"
#include "content/renderer/media/media_stream_audio_processor_options.h"
@@ -162,8 +163,10 @@
};
bool MediaStreamAudioProcessor::IsAudioTrackProcessingEnabled() {
- return !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableAudioTrackProcessing);
+ const std::string group_name =
+ base::FieldTrialList::FindFullName("MediaStreamAudioTrackProcessing");
+ return group_name == "Enabled" || CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableAudioTrackProcessing);
}
MediaStreamAudioProcessor::MediaStreamAudioProcessor(

Powered by Google App Engine
This is Rietveld 408576698