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

Unified Diff: media/base/audio_fifo.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_fifo.h
diff --git a/media/base/audio_fifo.h b/media/base/audio_fifo.h
index 213a61e9b2abb85a71ebd58df471ed974297419c..65349f50dd739da9aaf1713b647f7c5b284b0e3e 100644
--- a/media/base/audio_fifo.h
+++ b/media/base/audio_fifo.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_AUDIO_FIFO_H_
#define MEDIA_BASE_AUDIO_FIFO_H_
+#include <memory>
+
#include "base/macros.h"
#include "media/base/audio_bus.h"
#include "media/base/media_export.h"
@@ -43,7 +45,7 @@ class MEDIA_EXPORT AudioFifo {
private:
// The actual FIFO is an audio bus implemented as a ring buffer.
- scoped_ptr<AudioBus> audio_bus_;
+ std::unique_ptr<AudioBus> audio_bus_;
// Maximum number of elements the FIFO can contain.
// This value is set by |frames| in the constructor.

Powered by Google App Engine
This is Rietveld 408576698