Index: device/generic_sensor/platform_sensor_provider_linux.cc |
diff --git a/device/generic_sensor/platform_sensor_provider_linux.cc b/device/generic_sensor/platform_sensor_provider_linux.cc |
index 736c82ff55ab9dbfbf79dc45af2c28867d78915f..7049b615538b801ab74d12b534d606a19b7c8103 100644 |
--- a/device/generic_sensor/platform_sensor_provider_linux.cc |
+++ b/device/generic_sensor/platform_sensor_provider_linux.cc |
@@ -5,9 +5,11 @@ |
#include "device/generic_sensor/platform_sensor_provider_linux.h" |
#include "base/memory/singleton.h" |
+#include "base/task_runner_util.h" |
#include "base/threading/thread.h" |
#include "device/generic_sensor/linux/sensor_data_linux.h" |
#include "device/generic_sensor/platform_sensor_linux.h" |
+#include "device/generic_sensor/platform_sensor_reader_linux.h" |
namespace device { |
@@ -59,8 +61,9 @@ void PlatformSensorProviderLinux::SensorDeviceFound( |
mojom::SensorType type, |
mojo::ScopedSharedBufferMapping mapping, |
const PlatformSensorProviderBase::CreateSensorCallback& callback, |
- SensorInfoLinux* sensor_device) { |
+ const SensorInfoLinux* sensor_device) { |
DCHECK(CalledOnValidThread()); |
+ DCHECK(sensor_device); |
if (!StartPollingThread()) { |
callback.Run(nullptr); |