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

Unified Diff: media/base/multi_channel_resampler.cc

Issue 2865113007: Remove ScopedVector from media/base/ (Closed)
Patch Set: added header file in text_renderer_unittest.cc Created 3 years, 7 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
« no previous file with comments | « media/base/multi_channel_resampler.h ('k') | media/base/text_renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « media/base/multi_channel_resampler.h ('k') | media/base/text_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698