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

Unified Diff: chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.cc

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.cc
diff --git a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.cc b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.cc
index 5cd967eac0c0b3da2cbc535ab2bf45b25b8cdfe9..b3a97df6bb6a7855ec5aa62e92d38c7faa99ced8 100644
--- a/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.cc
+++ b/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.cc
@@ -15,7 +15,7 @@ namespace media {
StreamMixerAlsaInput::StreamMixerAlsaInput(Delegate* delegate,
int samples_per_second,
bool primary) {
- scoped_ptr<StreamMixerAlsaInputImpl> impl(new StreamMixerAlsaInputImpl(
+ std::unique_ptr<StreamMixerAlsaInputImpl> impl(new StreamMixerAlsaInputImpl(
delegate, samples_per_second, primary, StreamMixerAlsa::Get()));
impl_ = impl.get(); // Store a pointer to the impl, but the mixer owns it.
StreamMixerAlsa::Get()->AddInput(std::move(impl));

Powered by Google App Engine
This is Rietveld 408576698