Chromium Code Reviews| Index: remoting/webapp/app_remoting/js/app_connected_view.js |
| diff --git a/remoting/webapp/app_remoting/js/app_connected_view.js b/remoting/webapp/app_remoting/js/app_connected_view.js |
| index 73c308840c75abfff56082c91db00444f2c314d0..547656a6f26593634db9aebfe3619dcd15ffec1b 100644 |
| --- a/remoting/webapp/app_remoting/js/app_connected_view.js |
| +++ b/remoting/webapp/app_remoting/js/app_connected_view.js |
| @@ -29,12 +29,15 @@ var DRIVE_ACCESS_TOKEN_REFRESH_INTERVAL_MS = 15 * 60 * 1000; |
| /** |
| * @param {HTMLElement} containerElement |
| * @param {remoting.ConnectionInfo} connectionInfo |
| + * @param {remoting.ClientSession} clientSession |
| * |
| * @constructor |
| * @implements {base.Disposable} |
| * @implements {remoting.ProtocolExtension} |
| */ |
| -remoting.AppConnectedView = function(containerElement, connectionInfo) { |
| +remoting.AppConnectedView = function(containerElement, |
| + connectionInfo, |
|
kelvinp
2015/05/13 22:36:53
clientSession can be accessed through connectionIn
Jamie
2015/05/13 23:41:24
Done.
|
| + clientSession) { |
| /** @private */ |
| this.plugin_ = connectionInfo.plugin(); |
| @@ -50,8 +53,9 @@ remoting.AppConnectedView = function(containerElement, connectionInfo) { |
| new remoting.ContextMenuDom(document.getElementById('context-menu')); |
| } |
| - this.contextMenu_ = |
| - new remoting.ApplicationContextMenu(menuAdapter, this.plugin_); |
| + this.contextMenu_ = new remoting.ApplicationContextMenu(menuAdapter, |
| + this.plugin_, |
| + clientSession); |
| this.contextMenu_.setHostId(connectionInfo.host().hostId); |
| /** @private */ |