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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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: content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java b/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
index 64efbb72270dba3a4d957fa75fda1aac81efbd53..e2e91f380f6d89a85484700bdceefc666fca27ab 100644
--- a/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
+++ b/content/public/android/java/src/org/chromium/content/browser/DeviceSensors.java
@@ -92,12 +92,12 @@ class DeviceSensors implements SensorEventListener {
final Set<Integer> mActiveSensors = new HashSet<Integer>();
final List<Set<Integer>> mOrientationSensorSets;
Set<Integer> mDeviceOrientationSensors;
- boolean mDeviceLightIsActive = false;
- boolean mDeviceMotionIsActive = false;
- boolean mDeviceOrientationIsActive = false;
- boolean mDeviceOrientationIsActiveWithBackupSensors = false;
- boolean mDeviceOrientationAbsoluteIsActive = false;
- boolean mOrientationNotAvailable = false;
+ boolean mDeviceLightIsActive;
+ boolean mDeviceMotionIsActive;
+ boolean mDeviceOrientationIsActive;
+ boolean mDeviceOrientationIsActiveWithBackupSensors;
+ boolean mDeviceOrientationAbsoluteIsActive;
+ boolean mOrientationNotAvailable;
protected DeviceSensors(Context context) {
mAppContext = context.getApplicationContext();

Powered by Google App Engine
This is Rietveld 408576698