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

Unified Diff: webrtc/media/devices/macdevicemanager.cc

Issue 1728503002: Replace scoped_ptr with unique_ptr in webrtc/media/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up1
Patch Set: Created 4 years, 10 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 | « webrtc/media/devices/linuxdevicemanager.cc ('k') | webrtc/media/devices/mobiledevicemanager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/devices/macdevicemanager.cc
diff --git a/webrtc/media/devices/macdevicemanager.cc b/webrtc/media/devices/macdevicemanager.cc
index d434f54b90d91809f4af3d618e8a3426c4bb53c2..c2f3d8bdbb3101b13332f4ec2ffd4a3d413eda30 100644
--- a/webrtc/media/devices/macdevicemanager.cc
+++ b/webrtc/media/devices/macdevicemanager.cc
@@ -10,6 +10,8 @@
#include "webrtc/media/devices/macdevicemanager.h"
+#include <memory>
+
#include <CoreAudio/CoreAudio.h>
#include <QuickTime/QuickTime.h>
@@ -102,7 +104,7 @@ static bool GetAudioDeviceIDs(bool input,
}
size_t num_devices = propsize / sizeof(AudioDeviceID);
- rtc::scoped_ptr<AudioDeviceID[]> device_ids(
+ std::unique_ptr<AudioDeviceID[]> device_ids(
new AudioDeviceID[num_devices]);
err = AudioHardwareGetProperty(kAudioHardwarePropertyDevices,
« no previous file with comments | « webrtc/media/devices/linuxdevicemanager.cc ('k') | webrtc/media/devices/mobiledevicemanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698