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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.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/media/remote/AbstractMediaRouteController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.java b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.java
index ba81d8ea4357a0b72bf2956410a3df01eb9d4191..c895e0358a0a271109cadc899ec6a16a14f83ceb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteController.java
@@ -109,7 +109,7 @@ public abstract class AbstractMediaRouteController implements MediaRouteControll
};
/** True if we are waiting for the MediaRouter route to connect or reconnect */
- private boolean mConnectionFailureNotifierQueued = false;
+ private boolean mConnectionFailureNotifierQueued;
private void clearConnectionFailureCallback() {
getHandler().removeCallbacks(mConnectionFailureNotifier);
@@ -163,7 +163,7 @@ public abstract class AbstractMediaRouteController implements MediaRouteControll
private final DeviceSelectionCallback mDeviceSelectionCallback;
private final Handler mHandler;
- private boolean mIsPrepared = false;
+ private boolean mIsPrepared;
private final MediaRouter mMediaRouter;
@@ -180,12 +180,12 @@ public abstract class AbstractMediaRouteController implements MediaRouteControll
// two player states.
private PlayerState mRemotePlayerState = PlayerState.FINISHED;
private PlayerState mDisplayedPlayerState = PlayerState.FINISHED;
- private boolean mRoutesAvailable = false;
+ private boolean mRoutesAvailable;
private final Set<UiListener> mUiListeners;
- private boolean mWatchingRouteSelection = false;
+ private boolean mWatchingRouteSelection;
- private long mMediaElementAttachedTimestampMs = 0;
- private long mMediaElementDetachedTimestampMs = 0;
+ private long mMediaElementAttachedTimestampMs;
+ private long mMediaElementDetachedTimestampMs;
protected AbstractMediaRouteController() {
mContext = ContextUtils.getApplicationContext();

Powered by Google App Engine
This is Rietveld 408576698