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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/ClientRecord.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.cast; 5 package org.chromium.chrome.browser.media.router.cast;
6 6
7 import org.chromium.chrome.browser.media.router.MediaRoute; 7 import org.chromium.chrome.browser.media.router.MediaRoute;
8 8
9 import java.util.ArrayList; 9 import java.util.ArrayList;
10 import java.util.List; 10 import java.util.List;
(...skipping 28 matching lines...) Expand all
39 public final String origin; 39 public final String origin;
40 40
41 /** 41 /**
42 * The id of the tab that created/joined the route. 42 * The id of the tab that created/joined the route.
43 */ 43 */
44 public final int tabId; 44 public final int tabId;
45 45
46 /** 46 /**
47 * Whether the client is ready to receive messages. 47 * Whether the client is ready to receive messages.
48 */ 48 */
49 public boolean isConnected = false; 49 public boolean isConnected;
50 50
51 /** 51 /**
52 * The pending messages for the client. 52 * The pending messages for the client.
53 */ 53 */
54 public List<String> pendingMessages = new ArrayList<String>(); 54 public List<String> pendingMessages = new ArrayList<String>();
55 55
56 ClientRecord( 56 ClientRecord(
57 String routeId, 57 String routeId,
58 String clientId, 58 String clientId,
59 String appId, 59 String appId,
60 String autoJoinPolicy, 60 String autoJoinPolicy,
61 String origin, 61 String origin,
62 int tabId) { 62 int tabId) {
63 this.routeId = routeId; 63 this.routeId = routeId;
64 this.clientId = clientId; 64 this.clientId = clientId;
65 this.appId = appId; 65 this.appId = appId;
66 this.autoJoinPolicy = autoJoinPolicy; 66 this.autoJoinPolicy = autoJoinPolicy;
67 this.origin = origin; 67 this.origin = origin;
68 this.tabId = tabId; 68 this.tabId = tabId;
69 } 69 }
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698