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

Unified Diff: chrome/browser/resources/media_router/media_router_data.js

Issue 2862393002: [Media Router] Force DEFAULT cast mode when starting presentations from content. (Closed)
Patch Set: Fix bug found by closure compiler Created 3 years, 7 months 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/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 d51414707a3a7ae97e83066681b3bc8e26dc39bd..82ec6b3c1f411c94e4c9e751452065b3ce30f9bd 100644
--- a/chrome/browser/resources/media_router/media_router_data.js
+++ b/chrome/browser/resources/media_router/media_router_data.js
@@ -104,10 +104,11 @@ cr.define('media_router', function() {
* @param {number} type The type of cast mode.
* @param {string} description The description of the cast mode.
* @param {?string} host The hostname of the site to cast.
+ * @param {boolean} isForced True if the mode is forced.
* @constructor
* @struct
*/
- var CastMode = function(type, description, host) {
+ var CastMode = function(type, description, host, isForced) {
/** @type {number} */
this.type = type;
@@ -116,6 +117,9 @@ cr.define('media_router', function() {
/** @type {?string} */
this.host = host || null;
+
+ /** @type {boolean} */
+ this.isForced = isForced;
};
/**
@@ -123,7 +127,8 @@ cr.define('media_router', function() {
* @const {!media_router.CastMode}
*/
var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO,
- loadTimeData.getString('autoCastMode'), null);
+ loadTimeData.getString('autoCastMode'),
+ null, false);
/**
* @param {number} id The ID of this issue.

Powered by Google App Engine
This is Rietveld 408576698