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

Unified Diff: device/generic_sensor/platform_sensor_ambient_light_mac.h

Issue 2417643006: [sensors][mac] Make sure to update the sensor value when initializing the sensor. (Closed)
Patch Set: Last comments from Tim Created 4 years, 2 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 | « no previous file | device/generic_sensor/platform_sensor_ambient_light_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/platform_sensor_ambient_light_mac.h
diff --git a/device/generic_sensor/platform_sensor_ambient_light_mac.h b/device/generic_sensor/platform_sensor_ambient_light_mac.h
index bf5c070744cc8a4405f8d2402818799103288d16..32f965d3f9b1aed882a121abbbf3b5990cbfc0df 100644
--- a/device/generic_sensor/platform_sensor_ambient_light_mac.h
+++ b/device/generic_sensor/platform_sensor_ambient_light_mac.h
@@ -40,9 +40,9 @@ class PlatformSensorAmbientLightMac : public PlatformSensor {
bool CheckSensorConfiguration(
const PlatformSensorConfiguration& configuration) override;
PlatformSensorConfiguration GetDefaultConfiguration() override;
- void UpdateReading(uint64_t lux_values[2]);
private:
+ bool ReadAndUpdate();
static void IOServiceCallback(void* context,
io_service_t service,
natural_t message_type,
« no previous file with comments | « no previous file | device/generic_sensor/platform_sensor_ambient_light_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698