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

Unified Diff: remoting/webapp/base/js/application.js

Issue 896853002: [Chromoting] Set the app_capabilities in Application ctor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/application.js
diff --git a/remoting/webapp/base/js/application.js b/remoting/webapp/base/js/application.js
index d0810be7c49049e1c4a7d37d1ba3957b55561b57..066352859fd4c1719218678db7b930bdc7e9d58b 100644
--- a/remoting/webapp/base/js/application.js
+++ b/remoting/webapp/base/js/application.js
@@ -27,7 +27,13 @@ remoting.Application = function(app_capabilities) {
* @type {Array.<string>}
* @private
*/
- this.app_capabilities_ = app_capabilities;
+ this.app_capabilities_ = [
+ remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION,
+ remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS,
+ remoting.ClientSession.Capability.VIDEO_RECORDER
+ ];
+ // Append the app-specific capabilities.
+ this.app_capabilities_.push.apply(this.app_capabilities_, app_capabilities);
/**
* @type {remoting.SessionConnector}
@@ -49,14 +55,7 @@ remoting.Application.prototype.setDelegate = function(appDelegate) {
* by this application.
*/
remoting.Application.prototype.getRequiredCapabilities_ = function() {
- var capabilities = [
- remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION,
- remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS,
- remoting.ClientSession.Capability.VIDEO_RECORDER
- ];
- // Append the app-specific capabilities.
- capabilities.push.apply(capabilities, this.app_capabilities_);
- return capabilities;
+ return this.app_capabilities_;
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698