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

Unified Diff: content/browser/device_sensors/ambient_light_mac.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/ambient_light_mac.cc
diff --git a/content/browser/device_sensors/ambient_light_mac.cc b/content/browser/device_sensors/ambient_light_mac.cc
index 6f8d3d99d4c8c730f992b2ca99baade76b4b3dd7..c6606791bd35ef399d186bc46e84c336f61f51a4 100644
--- a/content/browser/device_sensors/ambient_light_mac.cc
+++ b/content/browser/device_sensors/ambient_light_mac.cc
@@ -23,8 +23,8 @@ enum LmuFunctionIndex {
} // namespace
// static
-scoped_ptr<AmbientLightSensor> AmbientLightSensor::Create() {
- scoped_ptr<AmbientLightSensor> light_sensor(new AmbientLightSensor);
+std::unique_ptr<AmbientLightSensor> AmbientLightSensor::Create() {
+ std::unique_ptr<AmbientLightSensor> light_sensor(new AmbientLightSensor);
return light_sensor->Init() ? std::move(light_sensor) : nullptr;
}
« no previous file with comments | « content/browser/device_sensors/ambient_light_mac.h ('k') | content/browser/device_sensors/data_fetcher_shared_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698