| Index: content/browser/device_sensors/device_sensor_host.cc
|
| diff --git a/content/browser/device_sensors/device_sensor_host.cc b/content/browser/device_sensors/device_sensor_host.cc
|
| index e4b806967e5c16aac8448233141f422249d19874..f3812ceec0bc2a7b55d10e4c3f3edab01db118eb 100644
|
| --- a/content/browser/device_sensors/device_sensor_host.cc
|
| +++ b/content/browser/device_sensors/device_sensor_host.cc
|
| @@ -21,7 +21,11 @@ void DeviceSensorHost<MojoInterface, consumer_type>::Create(
|
| template <typename MojoInterface, ConsumerType consumer_type>
|
| DeviceSensorHost<MojoInterface, consumer_type>::DeviceSensorHost()
|
| : is_started_(false) {
|
| +#if defined(OS_ANDROID)
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| +#else
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| +#endif
|
| }
|
|
|
| template <typename MojoInterface, ConsumerType consumer_type>
|
|
|