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

Unified Diff: media/base/audio_renderer_mixer.h

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_renderer_mixer.h
diff --git a/media/base/audio_renderer_mixer.h b/media/base/audio_renderer_mixer.h
index 9c712105d98a9eef490f3e650a83643e77942802..42cad9914776ef390be513a4a0f8262649997628 100644
--- a/media/base/audio_renderer_mixer.h
+++ b/media/base/audio_renderer_mixer.h
@@ -8,10 +8,10 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "base/time/time.h"
#include "media/base/audio_converter.h"
@@ -50,7 +50,8 @@ class MEDIA_EXPORT AudioRendererMixer
private:
// Maps input sample rate to the dedicated converter.
- typedef std::map<int, scoped_ptr<LoopbackAudioConverter>> AudioConvertersMap;
+ typedef std::map<int, std::unique_ptr<LoopbackAudioConverter>>
dcheng 2016/04/23 00:57:23 using if you want.
danakj 2016/04/23 01:11:15 Done.
+ AudioConvertersMap;
// AudioRendererSink::RenderCallback implementation.
int Render(AudioBus* audio_bus,

Powered by Google App Engine
This is Rietveld 408576698