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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.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/compositor/CompositorViewHolder.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java
index 6c7cefe74e1c7900c4563ebadf1eced005ad40aa..9b32070fdfc628f8acae970170a811b9c6f2d644 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java
@@ -76,7 +76,7 @@ public class CompositorViewHolder extends CoordinatorLayout
implements ContentOffsetProvider, LayoutManagerHost, LayoutRenderHost, Invalidator.Host,
FullscreenListener {
- private boolean mIsKeyboardShowing = false;
+ private boolean mIsKeyboardShowing;
private final Invalidator mInvalidator = new Invalidator();
private LayoutManager mLayoutManager;
@@ -89,7 +89,7 @@ public class CompositorViewHolder extends CoordinatorLayout
private final ArrayList<Invalidator.Client> mPendingInvalidations =
new ArrayList<Invalidator.Client>();
- private boolean mSkipInvalidation = false;
+ private boolean mSkipInvalidation;
/**
* A task to be performed after a resize event.
@@ -100,9 +100,9 @@ public class CompositorViewHolder extends CoordinatorLayout
private ChromeFullscreenManager mFullscreenManager;
private View mAccessibilityView;
private CompositorAccessibilityProvider mNodeProvider;
- private boolean mFullscreenTouchEvent = false;
- private float mLastContentOffset = 0;
- private float mLastVisibleContentOffset = 0;
+ private boolean mFullscreenTouchEvent;
+ private float mLastContentOffset;
+ private float mLastVisibleContentOffset;
/** The toolbar control container. **/
private ControlContainer mControlContainer;
@@ -121,7 +121,7 @@ public class CompositorViewHolder extends CoordinatorLayout
private DrawingInfo mProgressBarDrawingInfo;
// If we've drawn at least one frame.
- private boolean mHasDrawnOnce = false;
+ private boolean mHasDrawnOnce;
/**
* The desired size of this view in {@link MeasureSpec}. Set by the host

Powered by Google App Engine
This is Rietveld 408576698