Chromium Code Reviews| Index: media/audio/simple_sources.h |
| diff --git a/media/audio/simple_sources.h b/media/audio/simple_sources.h |
| index 4f153e6566fbd9bc66d4c8e6669d28c84c0524a0..62ca8681efba981c38f55e7dc567a8288db9dd6d 100644 |
| --- a/media/audio/simple_sources.h |
| +++ b/media/audio/simple_sources.h |
| @@ -72,10 +72,10 @@ class MEDIA_EXPORT FileSource : public AudioOutputStream::AudioSourceCallback, |
| // The WAV data at |path_to_wav_file_| is read into memory and kept here. |
| // This memory needs to survive for the lifetime of |wav_audio_handler_|, |
| // so declare it first. Do not access this member directly. |
| - scoped_ptr<char[]> raw_wav_data_; |
| + std::unique_ptr<char[]> raw_wav_data_; |
|
danakj
2016/04/22 22:47:37
include memory
dcheng
2016/04/22 23:13:20
Done.
|
| - scoped_ptr<WavAudioHandler> wav_audio_handler_; |
| - scoped_ptr<AudioConverter> file_audio_converter_; |
| + std::unique_ptr<WavAudioHandler> wav_audio_handler_; |
| + std::unique_ptr<AudioConverter> file_audio_converter_; |
| int wav_file_read_pos_; |
| bool load_failed_; |
| @@ -101,7 +101,7 @@ class BeepingSource : public AudioOutputStream::AudioSourceCallback { |
| static void BeepOnce(); |
| private: |
| int buffer_size_; |
| - scoped_ptr<uint8_t[]> buffer_; |
| + std::unique_ptr<uint8_t[]> buffer_; |
| AudioParameters params_; |
| base::TimeTicks last_callback_time_; |
| base::TimeDelta interval_from_last_beep_; |