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

Unified Diff: content/browser/device_sensors/sensor_manager_android_unittest.cc

Issue 1874893002: Convert //content/browser 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
Index: content/browser/device_sensors/sensor_manager_android_unittest.cc
diff --git a/content/browser/device_sensors/sensor_manager_android_unittest.cc b/content/browser/device_sensors/sensor_manager_android_unittest.cc
index 133b1b5a5f4b4e211b0484e0b56398ce0a2d6934..04aa6497f86490f702ba9b255a2cd2dbd89d3d74 100644
--- a/content/browser/device_sensors/sensor_manager_android_unittest.cc
+++ b/content/browser/device_sensors/sensor_manager_android_unittest.cc
@@ -4,8 +4,9 @@
#include "content/browser/device_sensors/sensor_manager_android.h"
+#include <memory>
+
#include "base/android/jni_android.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "content/browser/device_sensors/device_sensors_consts.h"
#include "content/public/test/test_browser_thread_bundle.h"
@@ -61,10 +62,10 @@ class AndroidSensorManagerTest : public testing::Test {
ASSERT_TRUE(buffer->data.hasGamma);
}
- scoped_ptr<DeviceLightHardwareBuffer> light_buffer_;
- scoped_ptr<DeviceMotionHardwareBuffer> motion_buffer_;
- scoped_ptr<DeviceOrientationHardwareBuffer> orientation_buffer_;
- scoped_ptr<DeviceOrientationHardwareBuffer> orientation_absolute_buffer_;
+ std::unique_ptr<DeviceLightHardwareBuffer> light_buffer_;
+ std::unique_ptr<DeviceMotionHardwareBuffer> motion_buffer_;
+ std::unique_ptr<DeviceOrientationHardwareBuffer> orientation_buffer_;
+ std::unique_ptr<DeviceOrientationHardwareBuffer> orientation_absolute_buffer_;
content::TestBrowserThreadBundle thread_bundle_;
};

Powered by Google App Engine
This is Rietveld 408576698