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

Unified Diff: device/sensors/data_fetcher_shared_memory_base.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
Index: device/sensors/data_fetcher_shared_memory_base.cc
diff --git a/device/sensors/data_fetcher_shared_memory_base.cc b/device/sensors/data_fetcher_shared_memory_base.cc
index 160bddb15dc131d9358e64472400de22f2db26bd..86e515c03fb0cb644ff8dfcfd6efe24793c268d6 100644
--- a/device/sensors/data_fetcher_shared_memory_base.cc
+++ b/device/sensors/data_fetcher_shared_memory_base.cc
@@ -15,7 +15,6 @@
#include "base/stl_util.h"
#include "base/threading/thread.h"
#include "base/timer/timer.h"
-#include "device/sensors/public/cpp/device_light_hardware_buffer.h"
#include "device/sensors/public/cpp/device_motion_hardware_buffer.h"
#include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
@@ -30,8 +29,6 @@ size_t GetConsumerSharedMemoryBufferSize(ConsumerType consumer_type) {
case CONSUMER_TYPE_ORIENTATION:
case CONSUMER_TYPE_ORIENTATION_ABSOLUTE:
return sizeof(DeviceOrientationHardwareBuffer);
- case CONSUMER_TYPE_LIGHT:
- return sizeof(DeviceLightHardwareBuffer);
default:
NOTREACHED();
}
@@ -174,7 +171,6 @@ void DataFetcherSharedMemoryBase::Shutdown() {
StopFetchingDeviceData(CONSUMER_TYPE_MOTION);
StopFetchingDeviceData(CONSUMER_TYPE_ORIENTATION);
StopFetchingDeviceData(CONSUMER_TYPE_ORIENTATION_ABSOLUTE);
- StopFetchingDeviceData(CONSUMER_TYPE_LIGHT);
// Ensure that the polling thread stops before entering the destructor of the
// subclass, as the stopping of the polling thread causes tasks to execute
« no previous file with comments | « device/sensors/data_fetcher_shared_memory_android.cc ('k') | device/sensors/data_fetcher_shared_memory_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698