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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.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: chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java b/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java
index 4c2703fd9790058c119001fd05270777da0616c6..81a6537b65ec568caa12e034738a45e750c2723a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheLauncher.java
@@ -37,17 +37,17 @@ public abstract class PrecacheLauncher {
* Initialized by updateEnabled to call updateEnabledSync when the sync backend is initialized.
* Only accessed on the UI thread.
*/
- private ProfileSyncService.SyncStateChangedListener mListener = null;
+ private ProfileSyncService.SyncStateChangedListener mListener;
/**
* Boolean failure indicators, reflecting the state of the last call to updatePrecachingEnabled.
* Access must occur on the UI thread. Values default to false -- so if mCalled is false, the
* value of the other booleans is not necessarily valid.
*/
- private boolean mCalled = false;
- private boolean mSyncInitialized = false;
- private boolean mNetworkPredictionsAllowed = false;
- private boolean mShouldRun = false;
+ private boolean mCalled;
+ private boolean mSyncInitialized;
+ private boolean mNetworkPredictionsAllowed;
+ private boolean mShouldRun;
/** Destroy the native PrecacheLauncher, releasing the memory that it was using. */
public void destroy() {

Powered by Google App Engine
This is Rietveld 408576698