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

Unified Diff: device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)
Patch Set: rebase 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: device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java
diff --git a/device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java b/device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java
index cfc41743654902ff12f57feb5096a962e43f0ac0..7360756cd18e4c196582fa99133aa90349371b9b 100644
--- a/device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java
+++ b/device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java
@@ -4,6 +4,7 @@
package org.chromium.device.sensors;
+import android.annotation.SuppressLint;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
@@ -67,6 +68,7 @@ class DeviceSensors implements SensorEventListener {
private SensorManagerProxy mSensorManagerProxy;
// The only instance of that class and its associated lock.
+ @SuppressLint("StaticFieldLeak")
private static DeviceSensors sSingleton;
private static Object sSingletonLock = new Object();

Powered by Google App Engine
This is Rietveld 408576698