| 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;
|
| }
|
|
|
|
|