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

Unified Diff: remoting/webapp/crd/js/client_session.js

Issue 895523004: [Chromoting] Add ability to enable/disable GDrive support per-app in gyp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Application.hasCapability Created 5 years, 11 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: 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);
}
};

Powered by Google App Engine
This is Rietveld 408576698