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

Unified Diff: trunk/src/content/renderer/media/webrtc/peer_connection_dependency_factory.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/webrtc/peer_connection_dependency_factory.cc
===================================================================
--- trunk/src/content/renderer/media/webrtc/peer_connection_dependency_factory.cc (revision 275780)
+++ trunk/src/content/renderer/media/webrtc/peer_connection_dependency_factory.cc (working copy)
@@ -12,7 +12,6 @@
#include "content/common/media/media_stream_messages.h"
#include "content/public/common/content_switches.h"
#include "content/renderer/media/media_stream.h"
-#include "content/renderer/media/media_stream_audio_processor.h"
#include "content/renderer/media/media_stream_audio_processor_options.h"
#include "content/renderer/media/media_stream_audio_source.h"
#include "content/renderer/media/media_stream_video_source.h"
@@ -627,13 +626,14 @@
base::File file = IPC::PlatformFileForTransitToFile(file_handle);
DCHECK(file.IsValid());
- if (MediaStreamAudioProcessor::IsAudioTrackProcessingEnabled()) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableAudioTrackProcessing)) {
EnsureWebRtcAudioDeviceImpl();
GetWebRtcAudioDevice()->EnableAecDump(file.Pass());
return;
}
- // TODO(xians): Remove the following code after kDisableAudioTrackProcessing
+ // TODO(xians): Remove the following code after kEnableAudioTrackProcessing
// is removed.
if (PeerConnectionFactoryCreated())
StartAecDump(file.Pass());
@@ -642,14 +642,15 @@
}
void PeerConnectionDependencyFactory::OnDisableAecDump() {
- if (MediaStreamAudioProcessor::IsAudioTrackProcessingEnabled()) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableAudioTrackProcessing)) {
// Do nothing if OnAecDumpFile() has never been called.
if (GetWebRtcAudioDevice())
GetWebRtcAudioDevice()->DisableAecDump();
return;
}
- // TODO(xians): Remove the following code after kDisableAudioTrackProcessing
+ // TODO(xians): Remove the following code after kEnableAudioTrackProcessing
// is removed.
if (aec_dump_file_.IsValid())
aec_dump_file_.Close();

Powered by Google App Engine
This is Rietveld 408576698