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

Unified Diff: media/audio/mac/audio_auhal_mac.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: . 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
« no previous file with comments | « media/audio/fake_audio_worker.cc ('k') | media/audio/mac/audio_auhal_mac_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_auhal_mac.h
diff --git a/media/audio/mac/audio_auhal_mac.h b/media/audio/mac/audio_auhal_mac.h
index 7d7f606585701eda6cbd7f83d0e9b492950723ff..b4fce5d708e8b729a23ba7d11f2dd15efde8b432 100644
--- a/media/audio/mac/audio_auhal_mac.h
+++ b/media/audio/mac/audio_auhal_mac.h
@@ -22,6 +22,8 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/cancelable_callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -178,11 +180,11 @@ class AUHALStream : public AudioOutputStream {
bool stopped_;
// Container for retrieving data from AudioSourceCallback::OnMoreData().
- scoped_ptr<AudioBus> output_bus_;
+ std::unique_ptr<AudioBus> output_bus_;
// Dynamically allocated FIFO used when CoreAudio asks for unexpected frame
// sizes.
- scoped_ptr<AudioPullFifo> audio_fifo_;
+ std::unique_ptr<AudioPullFifo> audio_fifo_;
// Current buffer delay. Set by Render().
uint32_t current_hardware_pending_bytes_;
« no previous file with comments | « media/audio/fake_audio_worker.cc ('k') | media/audio/mac/audio_auhal_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698