| Index: content/renderer/media/media_stream_audio_processor_options.cc
|
| diff --git a/content/renderer/media/media_stream_audio_processor_options.cc b/content/renderer/media/media_stream_audio_processor_options.cc
|
| index eda4a390eb201dfe42e8819118b409c9cd51f0d0..5ebb2a2a91e1667f9030de344eadb39d8bace38b 100644
|
| --- a/content/renderer/media/media_stream_audio_processor_options.cc
|
| +++ b/content/renderer/media/media_stream_audio_processor_options.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "content/renderer/media/media_stream_audio_processor_options.h"
|
|
|
| +#include "base/file_util.h"
|
| #include "base/files/file_path.h"
|
| #include "base/logging.h"
|
| #include "base/metrics/field_trial.h"
|
| @@ -258,10 +259,10 @@ void EnableExperimentalEchoCancellation(AudioProcessing* audio_processing) {
|
| }
|
|
|
| void StartEchoCancellationDump(AudioProcessing* audio_processing,
|
| - const base::PlatformFile& aec_dump_file) {
|
| - DCHECK_NE(aec_dump_file, base::kInvalidPlatformFileValue);
|
| + base::File aec_dump_file) {
|
| + DCHECK(aec_dump_file.IsValid());
|
|
|
| - FILE* stream = base::FdopenPlatformFile(aec_dump_file, "w");
|
| + FILE* stream = base::FileToFILE(aec_dump_file.Pass(), "w");
|
| if (!stream) {
|
| LOG(ERROR) << "Failed to open AEC dump file";
|
| return;
|
|
|