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

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

Issue 1008003002: [Webapp Refactor] Implements Me2MeConnectFlow as an object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/credentials_provider.js ('k') | remoting/webapp/crd/js/host.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 e94b84200fafe8314b74fb8dd2b8e83b339b4431..e1fb89779c9a50ff38eef577b110a27be5f3b460 100644
--- a/remoting/webapp/crd/js/desktop_remoting.js
+++ b/remoting/webapp/crd/js/desktop_remoting.js
@@ -209,14 +209,11 @@ remoting.DesktopRemoting.prototype.handleConnected = function(clientSession) {
* @param {string} sharedSecret
*/
var onPairingComplete = function(clientId, sharedSecret) {
- var pairingInfo = {
- pairingInfo: {
- clientId: clientId,
- sharedSecret: sharedSecret
- }
- };
var connector = remoting.app.getSessionConnector();
- remoting.HostSettings.save(connector.getHostId(), pairingInfo);
+ var host = remoting.hostList.getHostForId(connector.getHostId());
+ host.options.pairingInfo.clientId = clientId;
+ host.options.pairingInfo.sharedSecret = sharedSecret;
+ host.options.save();
connector.updatePairingInfo(clientId, sharedSecret);
};
// Use the platform name as a proxy for the local computer name.
« no previous file with comments | « remoting/webapp/crd/js/credentials_provider.js ('k') | remoting/webapp/crd/js/host.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698