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

Unified Diff: media/audio/sounds/wav_audio_handler.h

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/sounds/wav_audio_handler.h
diff --git a/media/audio/sounds/wav_audio_handler.h b/media/audio/sounds/wav_audio_handler.h
index 83c99b44a2f85219f0a74256e42f644f07c30466..18836fc298759cf0836b8c006089dbd839e4dc1f 100644
--- a/media/audio/sounds/wav_audio_handler.h
+++ b/media/audio/sounds/wav_audio_handler.h
@@ -8,8 +8,9 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
#include "base/time/time.h"
#include "media/base/media_export.h"
@@ -27,7 +28,8 @@ class MEDIA_EXPORT WavAudioHandler {
// Create a WavAudioHandler using |wav_data|. If |wav_data| cannot be parsed
// correctly, the returned scoped_ptr will be null. The underlying memory for
// wav_data must survive for the lifetime of this class.
- static scoped_ptr<WavAudioHandler> Create(const base::StringPiece wav_data);
+ static std::unique_ptr<WavAudioHandler> Create(
+ const base::StringPiece wav_data);
// Returns true when cursor points to the end of the track.
bool AtEnd(size_t cursor) const;

Powered by Google App Engine
This is Rietveld 408576698