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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.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/ui/MediaSessionTabHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
index 86043b3133aaf63f0b6272267446093aca16c8a6..9a07e755d67ab814738445ba0d4f61575da03ac3 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
@@ -46,21 +46,21 @@ public class MediaSessionTabHelper implements MediaImageCallback {
private static final int HIDE_NOTIFICATION_DELAY_MILLIS = 1000;
private Tab mTab;
- private Bitmap mPageMediaImage = null;
- private Bitmap mFavicon = null;
- private Bitmap mCurrentMediaImage = null;
- private String mOrigin = null;
+ private Bitmap mPageMediaImage;
+ private Bitmap mFavicon;
+ private Bitmap mCurrentMediaImage;
+ private String mOrigin;
private MediaSessionObserver mMediaSessionObserver;
private int mPreviousVolumeControlStream = AudioManager.USE_DEFAULT_STREAM_TYPE;
- private MediaNotificationInfo.Builder mNotificationInfoBuilder = null;
+ private MediaNotificationInfo.Builder mNotificationInfoBuilder;
// The fallback title if |mPageMetadata| is null or its title is empty.
- private String mFallbackTitle = null;
+ private String mFallbackTitle;
// The metadata set by the page.
- private MediaMetadata mPageMetadata = null;
+ private MediaMetadata mPageMetadata;
// The currently showing metadata.
- private MediaMetadata mCurrentMetadata = null;
- private MediaImageManager mMediaImageManager = null;
- private Set<Integer> mMediaSessionActions = null;
+ private MediaMetadata mCurrentMetadata;
+ private MediaImageManager mMediaImageManager;
+ private Set<Integer> mMediaSessionActions;
private Handler mHandler;
// The delayed task to hide notification. Hiding notification can be immediate or delayed.
// Delayed hiding will schedule this delayed task to |mHandler|. The task will be canceled when

Powered by Google App Engine
This is Rietveld 408576698