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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/MediaRouteControllerDialogManager.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.media.router; 5 package org.chromium.chrome.browser.media.router;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.DialogInterface; 8 import android.content.DialogInterface;
9 import android.os.Handler; 9 import android.os.Handler;
10 import android.support.v4.app.DialogFragment; 10 import android.support.v4.app.DialogFragment;
(...skipping 27 matching lines...) Expand all
38 super(source, applicationContext, delegate); 38 super(source, applicationContext, delegate);
39 mMediaRouteId = mediaRouteId; 39 mMediaRouteId = mediaRouteId;
40 } 40 }
41 41
42 /** 42 /**
43 * Fragment implementation for MediaRouteControllerDialogManager. 43 * Fragment implementation for MediaRouteControllerDialogManager.
44 */ 44 */
45 public static class Fragment extends MediaRouteControllerDialogFragment { 45 public static class Fragment extends MediaRouteControllerDialogFragment {
46 private final Handler mHandler = new Handler(); 46 private final Handler mHandler = new Handler();
47 private final SystemVisibilitySaver mVisibilitySaver = new SystemVisibil itySaver(); 47 private final SystemVisibilitySaver mVisibilitySaver = new SystemVisibil itySaver();
48 private BaseMediaRouteDialogManager mManager = null; 48 private BaseMediaRouteDialogManager mManager;
49 private MediaRouter.Callback mCallback = null; 49 private MediaRouter.Callback mCallback;
50 50
51 public Fragment() { 51 public Fragment() {
52 mHandler.post(new Runnable() { 52 mHandler.post(new Runnable() {
53 @Override 53 @Override
54 public void run() { 54 public void run() {
55 Fragment.this.dismiss(); 55 Fragment.this.dismiss();
56 } 56 }
57 }); 57 });
58 } 58 }
59 59
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (selector == null) return null; 94 if (selector == null) return null;
95 95
96 androidMediaRouter().addCallback(selector, mCallback); 96 androidMediaRouter().addCallback(selector, mCallback);
97 97
98 fragment.show(fm, DIALOG_FRAGMENT_TAG); 98 fragment.show(fm, DIALOG_FRAGMENT_TAG);
99 fm.executePendingTransactions(); 99 fm.executePendingTransactions();
100 100
101 return fragment; 101 return fragment;
102 } 102 }
103 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698