Index: media/base/multi_channel_resampler.cc |
diff --git a/media/base/multi_channel_resampler.cc b/media/base/multi_channel_resampler.cc |
index a949b0f51938bd62ad62d375c1d6b4a82bbe23ca..77ca8c5d9b41cf8084d5f5d6f1c1b557abd0ef83 100644 |
--- a/media/base/multi_channel_resampler.cc |
+++ b/media/base/multi_channel_resampler.cc |
@@ -9,6 +9,7 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
#include "base/logging.h" |
+#include "base/memory/ptr_util.h" |
#include "media/base/audio_bus.h" |
namespace media { |
@@ -23,9 +24,10 @@ MultiChannelResampler::MultiChannelResampler(int channels, |
// Allocate each channel's resampler. |
resamplers_.reserve(channels); |
for (int i = 0; i < channels; ++i) { |
- resamplers_.push_back(new SincResampler( |
- io_sample_rate_ratio, request_size, base::Bind( |
- &MultiChannelResampler::ProvideInput, base::Unretained(this), i))); |
+ resamplers_.push_back(base::MakeUnique<SincResampler>( |
+ io_sample_rate_ratio, request_size, |
+ base::Bind(&MultiChannelResampler::ProvideInput, base::Unretained(this), |
+ i))); |
} |
// Setup the wrapped AudioBus for channel data. |