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

Unified Diff: services/device/device_service.cc

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: services/device/device_service.cc
diff --git a/services/device/device_service.cc b/services/device/device_service.cc
index 106a29a235857079285b6c8c35b6fecc5b9ec235..be37dbcdd71df2471442ad2c7dbfef4b995c2663 100644
--- a/services/device/device_service.cc
+++ b/services/device/device_service.cc
@@ -87,7 +87,6 @@ DeviceService::~DeviceService() {
void DeviceService::OnStart() {
registry_.AddInterface<mojom::Fingerprint>(this);
- registry_.AddInterface<mojom::LightSensor>(this);
registry_.AddInterface<mojom::MotionSensor>(this);
registry_.AddInterface<mojom::OrientationSensor>(this);
registry_.AddInterface<mojom::OrientationAbsoluteSensor>(this);
@@ -137,22 +136,6 @@ void DeviceService::Create(const service_manager::Identity& remote_identity,
}
void DeviceService::Create(const service_manager::Identity& remote_identity,
- mojom::LightSensorRequest request) {
-#if defined(OS_ANDROID)
- // On Android the device sensors implementations need to run on the UI thread
- // to communicate to Java.
- DeviceLightHost::Create(std::move(request));
-#else
- // On platforms other than Android the device sensors implementations run on
- // the IO thread.
- if (io_task_runner_) {
- io_task_runner_->PostTask(FROM_HERE, base::Bind(&DeviceLightHost::Create,
- base::Passed(&request)));
- }
-#endif // defined(OS_ANDROID)
-}
-
-void DeviceService::Create(const service_manager::Identity& remote_identity,
mojom::MotionSensorRequest request) {
#if defined(OS_ANDROID)
// On Android the device sensors implementations need to run on the UI thread
« no previous file with comments | « services/device/device_service.h ('k') | third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698