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

Unified Diff: media/base/audio_converter_perftest.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: . Created 4 years, 8 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: media/base/audio_converter_perftest.cc
diff --git a/media/base/audio_converter_perftest.cc b/media/base/audio_converter_perftest.cc
index 92bff2913084b427ae96987cf0f5a4bb0cf1e591..092688e11be4b36025a474b89a1d52e45fcf1d6a 100644
--- a/media/base/audio_converter_perftest.cc
+++ b/media/base/audio_converter_perftest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/time/time.h"
#include "media/base/audio_converter.h"
#include "media/base/fake_audio_render_callback.h"
@@ -32,7 +34,7 @@ void RunConvertBenchmark(const AudioParameters& in_params,
NullInputProvider fake_input1;
NullInputProvider fake_input2;
NullInputProvider fake_input3;
- scoped_ptr<AudioBus> output_bus = AudioBus::Create(out_params);
+ std::unique_ptr<AudioBus> output_bus = AudioBus::Create(out_params);
AudioConverter converter(in_params, out_params, !fifo);
converter.AddInput(&fake_input1);

Powered by Google App Engine
This is Rietveld 408576698