| Index: remoting/webapp/app_remoting/js/app_remoting_activity.js
|
| diff --git a/remoting/webapp/app_remoting/js/app_remoting_activity.js b/remoting/webapp/app_remoting/js/app_remoting_activity.js
|
| index f694de9a0795c4c790e9e500dd541d3638c1f009..8b90fff8357f498a31fb7eefc5b93c167f86b000 100644
|
| --- a/remoting/webapp/app_remoting/js/app_remoting_activity.js
|
| +++ b/remoting/webapp/app_remoting/js/app_remoting_activity.js
|
| @@ -28,11 +28,13 @@ remoting.AppHostResponse;
|
| * @param {Array<string>} appCapabilities Array of application capabilities.
|
| * @param {remoting.Application} app
|
| * @param {remoting.WindowShape} windowShape
|
| + * @param {string} subscriptionToken
|
| *
|
| * @constructor
|
| * @implements {remoting.Activity}
|
| */
|
| -remoting.AppRemotingActivity = function(appCapabilities, app, windowShape) {
|
| +remoting.AppRemotingActivity = function(appCapabilities, app, windowShape,
|
| + subscriptionToken) {
|
| /** @private */
|
| this.sessionFactory_ = new remoting.ClientSessionFactory(
|
| document.querySelector('#client-container .client-plugin-container'),
|
| @@ -49,6 +51,9 @@ remoting.AppRemotingActivity = function(appCapabilities, app, windowShape) {
|
|
|
| /** @private */
|
| this.windowShape_ = windowShape;
|
| +
|
| + /** @private */
|
| + this.subscriptionToken_ = subscriptionToken;
|
| };
|
|
|
| remoting.AppRemotingActivity.prototype.dispose = function() {
|
| @@ -90,6 +95,7 @@ remoting.AppRemotingActivity.prototype.cleanup_ = function() {
|
| remoting.AppRemotingActivity.prototype.getAppHostInfo_ = function(token) {
|
| var url = remoting.settings.APP_REMOTING_API_BASE_URL + '/applications/' +
|
| remoting.settings.getAppRemotingApplicationId() + '/run';
|
| + // TODO(kelvinp): Passes |this.subscriptionToken_| to the XHR.
|
| return new remoting.AutoRetryXhr({
|
| method: 'POST',
|
| url: url,
|
|
|