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

Unified Diff: device/sensors/device_sensor_service.cc

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch 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
« no previous file with comments | « device/sensors/device_sensor_service.h ('k') | device/sensors/device_sensors_consts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/device_sensor_service.cc
diff --git a/device/sensors/device_sensor_service.cc b/device/sensors/device_sensor_service.cc
index 44693185eb8d09435f504d4e18d0d7bd6d30628a..6f1c21fb547579741f48c4575ba1aff273250140 100644
--- a/device/sensors/device_sensor_service.cc
+++ b/device/sensors/device_sensor_service.cc
@@ -13,8 +13,7 @@
namespace device {
DeviceSensorService::DeviceSensorService()
- : num_light_readers_(0),
- num_motion_readers_(0),
+ : num_motion_readers_(0),
num_orientation_readers_(0),
num_orientation_absolute_readers_(0),
is_shutdown_(false) {
@@ -66,10 +65,6 @@ bool DeviceSensorService::ChangeNumberConsumers(ConsumerType consumer_type,
num_orientation_absolute_readers_ += delta;
DCHECK_GE(num_orientation_absolute_readers_, 0);
return true;
- case CONSUMER_TYPE_LIGHT:
- num_light_readers_ += delta;
- DCHECK_GE(num_light_readers_, 0);
- return true;
default:
NOTREACHED();
}
@@ -84,8 +79,6 @@ int DeviceSensorService::GetNumberConsumers(ConsumerType consumer_type) const {
return num_orientation_readers_;
case CONSUMER_TYPE_ORIENTATION_ABSOLUTE:
return num_orientation_absolute_readers_;
- case CONSUMER_TYPE_LIGHT:
- return num_light_readers_;
default:
NOTREACHED();
}
« no previous file with comments | « device/sensors/device_sensor_service.h ('k') | device/sensors/device_sensors_consts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698