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

Unified Diff: media/audio/clockless_audio_sink.cc

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast + windows build 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/audio/clockless_audio_sink.cc
diff --git a/media/audio/clockless_audio_sink.cc b/media/audio/clockless_audio_sink.cc
index ede067cd2802df0f89d94709fa903ed2afed0c83..911d09d09c75aba1542e772fb7abc40dc5a1737d 100644
--- a/media/audio/clockless_audio_sink.cc
+++ b/media/audio/clockless_audio_sink.cc
@@ -67,11 +67,11 @@ class ClocklessAudioSinkThread : public base::DelegateSimpleThread::Delegate {
}
AudioRendererSink::RenderCallback* callback_;
- scoped_ptr<AudioBus> audio_bus_;
- scoped_ptr<base::WaitableEvent> stop_event_;
- scoped_ptr<base::DelegateSimpleThread> thread_;
+ std::unique_ptr<AudioBus> audio_bus_;
danakj 2016/04/22 22:47:36 include memory
dcheng 2016/04/22 23:13:20 Related header.
+ std::unique_ptr<base::WaitableEvent> stop_event_;
+ std::unique_ptr<base::DelegateSimpleThread> thread_;
base::TimeDelta playback_time_;
- scoped_ptr<AudioHash> audio_hash_;
+ std::unique_ptr<AudioHash> audio_hash_;
};
ClocklessAudioSink::ClocklessAudioSink()

Powered by Google App Engine
This is Rietveld 408576698