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

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

Issue 2144623003: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng comments Created 4 years, 5 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 <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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698