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

Unified Diff: remoting/webapp/crd/js/host.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/desktop_remoting.js ('k') | remoting/webapp/crd/js/me2me_connect_flow.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/host.js
diff --git a/remoting/webapp/crd/js/host.js b/remoting/webapp/crd/js/host.js
index 59129b1dfc2f3f0cbcd56e287e9b8b1a3806e040..6bc0bbadc026ff34102a57c4c1e1a40f55ca0670 100644
--- a/remoting/webapp/crd/js/host.js
+++ b/remoting/webapp/crd/js/host.js
@@ -62,6 +62,8 @@ remoting.Host.Options = function(hostId) {
this.remapKeys = '';
/** @type {number} */
this.desktopScale = 1;
+ /** @type {remoting.PairingInfo} */
+ this.pairingInfo = {clientId: '', sharedSecret: ''};
};
remoting.Host.Options.prototype.save = function() {
@@ -88,6 +90,9 @@ remoting.Host.Options.prototype.load = function() {
that.shrinkToFit = getBooleanAttr(options, 'shrinkToFit', true);
that.desktopScale = getNumberAttr(options, 'desktopScale', 1);
that.remapKeys = getStringAttr(options, 'remapKeys', '');
+ that.pairingInfo =
+ /** @type {remoting.PairingInfo} */ (
+ getObjectAttr(options, 'pairingInfo', that.pairingInfo));
});
};
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting.js ('k') | remoting/webapp/crd/js/me2me_connect_flow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698