Index: remoting/webapp/crd/js/client_session.js |
diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js |
index 73bf54e140d656e608692780f81aaf345da29b51..3edecfe0f14910b15a47bce820447bc17aea6331 100644 |
--- a/remoting/webapp/crd/js/client_session.js |
+++ b/remoting/webapp/crd/js/client_session.js |
@@ -32,13 +32,6 @@ var remoting = remoting || {}; |
remoting.ACCESS_TOKEN_RESEND_INTERVAL_MS = 15 * 60 * 1000; |
/** |
- * True if Cast capability is supported. |
- * |
- * @type {boolean} |
- */ |
-remoting.enableCast = false; |
- |
-/** |
* True to enable mouse lock. |
* This is currently disabled because the current client plugin does not |
* properly handle mouse lock and delegated large cursors at the same time. |
@@ -1677,7 +1670,8 @@ remoting.ClientSession.prototype.processCastExtensionMessage_ = function(data) { |
* @private |
*/ |
remoting.ClientSession.prototype.createCastExtensionHandler_ = function() { |
- if (remoting.enableCast && this.mode_ == remoting.ClientSession.Mode.ME2ME) { |
+ if (remoting.app.hasCapability(remoting.ClientSession.Capability.CAST) && |
+ this.mode_ == remoting.ClientSession.Mode.ME2ME) { |
this.castExtensionHandler_ = new remoting.CastExtensionHandler(this); |
} |
}; |