Chromium Code Reviews| Index: chrome/browser/resources/media_router/media_router_data.js |
| diff --git a/chrome/browser/resources/media_router/media_router_data.js b/chrome/browser/resources/media_router/media_router_data.js |
| index aec528cfc02c4ffd820a8be82fad3ec73f0d718a..6bdcfc18435ec85166edb41f2ab12c0b648f7a19 100644 |
| --- a/chrome/browser/resources/media_router/media_router_data.js |
| +++ b/chrome/browser/resources/media_router/media_router_data.js |
| @@ -122,11 +122,12 @@ cr.define('media_router', function() { |
| * @param {boolean} isLocal True if this is a locally created route. |
| * @param {?string} customControllerPath non-empty if this route has custom |
| * controller. |
| + * @param {boolean=} opt_canJoin True if this route can be joined. |
|
imcheng
2015/12/01 23:45:06
why not required?
matt.boetger
2015/12/03 01:19:21
Done.
|
| * @constructor |
| * @struct |
| */ |
| var Route = function(id, sinkId, description, tabId, isLocal, |
| - customControllerPath) { |
| + customControllerPath, opt_canJoin) { |
| /** @type {string} */ |
| this.id = id; |
| @@ -142,6 +143,9 @@ cr.define('media_router', function() { |
| /** @type {boolean} */ |
| this.isLocal = isLocal; |
| + /** @type {boolean} */ |
| + this.canJoin = opt_canJoin || false; |
| + |
| /** @type {?string} */ |
| this.customControllerPath = customControllerPath; |
| }; |