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

Unified Diff: third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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 | « third_party/libaddressinput/chromium/string_compare.cc ('k') | third_party/zlib/google/zip_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
diff --git a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
index bbb7c91a81662b9e29ab040c431424b4a783c61e..be9d0d65d29e97c90c0168b0d71607804a891894 100644
--- a/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
+++ b/third_party/sudden_motion_sensor/sudden_motion_sensor_mac.cc
@@ -53,9 +53,10 @@
#include <math.h>
#include <sys/sysctl.h>
+#include <memory>
+
#include "base/logging.h"
#include "base/mac/scoped_cftyperef.h"
-#include "base/memory/scoped_ptr.h"
struct SuddenMotionSensor::GenericMacbookSensor {
// Name of device to be read.
@@ -243,7 +244,7 @@ const SuddenMotionSensor::SensorDescriptor
// Create a SuddenMotionSensor object and return NULL if no valid sensor found.
SuddenMotionSensor* SuddenMotionSensor::Create() {
- scoped_ptr<SuddenMotionSensor> accelerometer(new SuddenMotionSensor);
+ std::unique_ptr<SuddenMotionSensor> accelerometer(new SuddenMotionSensor);
return accelerometer->Init() ? accelerometer.release() : NULL;
}
« no previous file with comments | « third_party/libaddressinput/chromium/string_compare.cc ('k') | third_party/zlib/google/zip_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698