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

Unified Diff: services/sensors/org/chromium/mojo/sensors/SensorServiceImpl.java

Issue 1098243003: java libraries: Fix warnings in eclipse. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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/sensors/org/chromium/mojo/sensors/SensorServiceImpl.java
diff --git a/services/sensors/org/chromium/mojo/sensors/SensorServiceImpl.java b/services/sensors/org/chromium/mojo/sensors/SensorServiceImpl.java
deleted file mode 100644
index 3d76857cc47852f9a41774f5f38b5a26a11b49f7..0000000000000000000000000000000000000000
--- a/services/sensors/org/chromium/mojo/sensors/SensorServiceImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.mojo.sensors;
-
-import android.content.Context;
-
-import org.chromium.mojo.system.MessagePipeHandle;
-import org.chromium.mojo.system.MojoException;
-import org.chromium.mojom.sensors.SensorListener;
-import org.chromium.mojom.sensors.SensorService;
-
-/**
- * Android implementation of Senors.
- */
-public class SensorServiceImpl implements SensorService {
- private Context mContext;
-
- public SensorServiceImpl(Context context, MessagePipeHandle pipe) {
- mContext = context;
-
- SensorService.MANAGER.bind(this, pipe);
- }
-
- @Override
- public void close() {}
-
- @Override
- public void onConnectionError(MojoException e) {}
-
- @Override
- public void addListener(int sensorType, SensorListener listener) {
- new SensorForwarder(mContext, sensorType, (SensorListener.Proxy) listener);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698