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 "base/bind.h" |
| 8 #include "base/bind_helpers.h" |
| 9 #include "base/single_thread_task_runner.h" |
| 10 #include "device/sensors/mojo/sensor_factory_impl.h" |
| 11 |
| 12 namespace device { |
| 13 |
| 14 // static |
| 15 void SensorService::BindRequest( |
| 16 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 17 mojo::InterfaceRequest<sensors::SensorFactory> request) { |
| 18 task_runner->PostTask(FROM_HERE, |
| 19 base::Bind(sensors::SensorFactoryImpl::Create, |
| 20 base::Passed(std::move(request)))); |
| 21 } |
| 22 |
| 23 } // namespace device |
OLD | NEW |