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

Unified Diff: device/sensors/data_fetcher_shared_memory_android.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/data_fetcher_shared_memory.h ('k') | device/sensors/data_fetcher_shared_memory_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/data_fetcher_shared_memory_android.cc
diff --git a/device/sensors/data_fetcher_shared_memory_android.cc b/device/sensors/data_fetcher_shared_memory_android.cc
index 5dec86a1ab0b18b725a9024a990e99c64d2e434c..3e08690600cf07543b4c85af2faa62699a0a11a1 100644
--- a/device/sensors/data_fetcher_shared_memory_android.cc
+++ b/device/sensors/data_fetcher_shared_memory_android.cc
@@ -5,7 +5,6 @@
#include "device/sensors/data_fetcher_shared_memory.h"
#include "base/logging.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"
#include "device/sensors/sensor_manager_android.h"
@@ -33,10 +32,6 @@ bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
->StartFetchingDeviceOrientationAbsoluteData(
static_cast<DeviceOrientationHardwareBuffer*>(buffer));
return true;
- case CONSUMER_TYPE_LIGHT:
- SensorManagerAndroid::GetInstance()->StartFetchingDeviceLightData(
- static_cast<DeviceLightHardwareBuffer*>(buffer));
- return true;
default:
NOTREACHED();
}
@@ -55,9 +50,6 @@ bool DataFetcherSharedMemory::Stop(ConsumerType consumer_type) {
SensorManagerAndroid::GetInstance()
->StopFetchingDeviceOrientationAbsoluteData();
return true;
- case CONSUMER_TYPE_LIGHT:
- SensorManagerAndroid::GetInstance()->StopFetchingDeviceLightData();
- return true;
default:
NOTREACHED();
}
« no previous file with comments | « device/sensors/data_fetcher_shared_memory.h ('k') | device/sensors/data_fetcher_shared_memory_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698