Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "device/sensors/sensor_service.h" | |
| 6 | |
| 7 #include <utility> | |
| 8 | |
| 9 #include "base/bind.h" | |
| 10 #include "base/bind_helpers.h" | |
| 11 #include "base/single_thread_task_runner.h" | |
| 12 #include "device/sensors/sensor_provider_impl.h" | |
| 13 | |
| 14 namespace device { | |
| 15 | |
| 16 // static | |
| 17 void SensorService::BindRequest( | |
| 18 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | |
| 19 mojo::InterfaceRequest<mojom::SensorProvider> request) { | |
| 20 task_runner->PostTask(FROM_HERE, base::Bind(mojom::SensorProviderImpl::Create, | |
|
Reilly Grant (use Gerrit)
2016/07/27 22:07:58
What is the purpose of posting a task here?
Mikhail
2016/08/09 19:38:28
We want to move the notification from the sensors
| |
| 21 base::Passed(&request))); | |
| 22 } | |
| 23 | |
| 24 } // namespace device | |
| OLD | NEW |