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

Unified Diff: device/generic_sensor/platform_sensor_ambient_light_mac.cc

Issue 2859553003: Update PlatformSensorAmbientLightMac constructor (Closed)
Patch Set: update PlatformSensorAmbientLightMac constructor Created 3 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: device/generic_sensor/platform_sensor_ambient_light_mac.cc
diff --git a/device/generic_sensor/platform_sensor_ambient_light_mac.cc b/device/generic_sensor/platform_sensor_ambient_light_mac.cc
index 363b97e443c01f2f4ee4551d33a79b5685c3b54c..8a72acf7d6d6108614916bc20c3fc7be626f956e 100644
--- a/device/generic_sensor/platform_sensor_ambient_light_mac.cc
+++ b/device/generic_sensor/platform_sensor_ambient_light_mac.cc
@@ -47,14 +47,13 @@ enum LmuFunctionIndex {
};
PlatformSensorAmbientLightMac::PlatformSensorAmbientLightMac(
- mojom::SensorType type,
mojo::ScopedSharedBufferMapping mapping,
PlatformSensorProvider* provider)
- : PlatformSensor(type, std::move(mapping), provider),
+ : PlatformSensor(mojom::SensorType::AMBIENT_LIGHT,
+ std::move(mapping),
+ provider),
light_sensor_port_(nullptr),
- current_lux_(0.0) {
- DCHECK_EQ(type, mojom::SensorType::AMBIENT_LIGHT);
-}
+ current_lux_(0.0) {}
PlatformSensorAmbientLightMac::~PlatformSensorAmbientLightMac() = default;
« no previous file with comments | « device/generic_sensor/platform_sensor_ambient_light_mac.h ('k') | device/generic_sensor/platform_sensor_provider_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698