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

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

Issue 1010053002: [Webapp Refactor] Implements remoting.ConnectionInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 9 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 | « remoting/webapp/crd/js/connection_info.js ('k') | remoting/webapp/crd/js/session_connector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/desktop_remoting.js
diff --git a/remoting/webapp/crd/js/desktop_remoting.js b/remoting/webapp/crd/js/desktop_remoting.js
index 10e35c5437115d8287fb776eef0c7bbde13a54ce..d448f7c39eccccceebfa05e80ccc151a752d1962 100644
--- a/remoting/webapp/crd/js/desktop_remoting.js
+++ b/remoting/webapp/crd/js/desktop_remoting.js
@@ -166,10 +166,10 @@ remoting.DesktopRemoting.prototype.getDefaultRemapKeys = function() {
/**
* Called when a new session has been connected.
*
- * @param {remoting.ClientSession} clientSession
+ * @param {remoting.ConnectionInfo} connectionInfo
* @return {void} Nothing.
*/
-remoting.DesktopRemoting.prototype.handleConnected = function(clientSession) {
+remoting.DesktopRemoting.prototype.handleConnected = function(connectionInfo) {
// Set the text on the buttons shown under the error message so that they are
// easy to understand in the case where a successful connection failed, as
// opposed to the case where a connection never succeeded.
@@ -235,7 +235,7 @@ remoting.DesktopRemoting.prototype.handleConnected = function(clientSession) {
console.log('Unrecognized client platform. Using navigator.platform.');
clientName = navigator.platform;
}
- clientSession.requestPairing(clientName, onPairingComplete);
+ connectionInfo.session().requestPairing(clientName, onPairingComplete);
}
};
« no previous file with comments | « remoting/webapp/crd/js/connection_info.js ('k') | remoting/webapp/crd/js/session_connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698