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

Unified Diff: webrtc/media/devices/linuxdeviceinfo.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/gtkvideorenderer.h ('k') | webrtc/media/devices/linuxdevicemanager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/devices/linuxdeviceinfo.cc
diff --git a/webrtc/media/devices/linuxdeviceinfo.cc b/webrtc/media/devices/linuxdeviceinfo.cc
index 1de793287c0b39dfbd1fc8cf991efa2b0620e55b..df226146b3ae008af13f44f368fb3ab41e9ffdda 100644
--- a/webrtc/media/devices/linuxdeviceinfo.cc
+++ b/webrtc/media/devices/linuxdeviceinfo.cc
@@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "webrtc/media/devices/deviceinfo.h"
#include "webrtc/base/common.h" // for ASSERT
@@ -77,7 +79,7 @@ class ScopedUdevEnumerate {
bool GetUsbProperty(const Device& device, const char* property_name,
std::string* property) {
- rtc::scoped_ptr<ScopedLibUdev> libudev_context(ScopedLibUdev::Create());
+ std::unique_ptr<ScopedLibUdev> libudev_context(ScopedLibUdev::Create());
if (!libudev_context) {
return false;
}
« no previous file with comments | « webrtc/media/devices/gtkvideorenderer.h ('k') | webrtc/media/devices/linuxdevicemanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698