| 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 f47429240adbbba70ac84d9664d31e3c508b7847..d84e71be4dbed9aeeacd22557207717611a8ed49 100644
|
| --- a/content/browser/device_sensors/device_sensor_host.cc
|
| +++ b/content/browser/device_sensors/device_sensor_host.cc
|
| @@ -22,7 +22,7 @@ DeviceSensorHost<MojoInterface, consumer_type>::DeviceSensorHost(
|
|
|
| template <typename MojoInterface, ConsumerType consumer_type>
|
| DeviceSensorHost<MojoInterface, consumer_type>::~DeviceSensorHost() {
|
| - DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| if (is_started_)
|
| DeviceSensorService::GetInstance()->RemoveConsumer(consumer_type);
|
| }
|
| @@ -30,7 +30,7 @@ DeviceSensorHost<MojoInterface, consumer_type>::~DeviceSensorHost() {
|
| template <typename MojoInterface, ConsumerType consumer_type>
|
| void DeviceSensorHost<MojoInterface, consumer_type>::DeviceSensorHost::
|
| StartPolling(const typename MojoInterface::StartPollingCallback& callback) {
|
| - DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| DCHECK(!is_started_);
|
| if (is_started_)
|
| return;
|
| @@ -43,7 +43,7 @@ void DeviceSensorHost<MojoInterface, consumer_type>::DeviceSensorHost::
|
| template <typename MojoInterface, ConsumerType consumer_type>
|
| void DeviceSensorHost<MojoInterface,
|
| consumer_type>::DeviceSensorHost::StopPolling() {
|
| - DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| DCHECK(is_started_);
|
| if (!is_started_)
|
| return;
|
|
|