Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: device/sensors/sensor_service.cc

Issue 2078433002: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Interfaces + implementation of common part. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« device/sensors/public/interfaces/sensor_factory.mojom ('K') | « device/sensors/sensor_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698