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

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

Issue 1358173005: Refactor HostSettings class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests. Created 5 years, 3 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_viewport.js ('k') | remoting/webapp/crd/js/remoting_activity_test_driver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/me2me_activity.js
diff --git a/remoting/webapp/crd/js/me2me_activity.js b/remoting/webapp/crd/js/me2me_activity.js
index 3fd8251c421063591b184a8a2a983058c8d87b05..5a35735c1453a4a3a520bf2210fe035fd33842f9 100644
--- a/remoting/webapp/crd/js/me2me_activity.js
+++ b/remoting/webapp/crd/js/me2me_activity.js
@@ -159,8 +159,7 @@ remoting.Me2MeActivity.prototype.createCredentialsProvider_ = function() {
return new remoting.CredentialsProvider({
fetchPin: requestPin,
- pairingInfo: /** @type{remoting.PairingInfo} */ (
- base.deepCopy(host.options.pairingInfo)),
+ pairingInfo: host.options.getPairingInfo(),
fetchThirdPartyToken: fetchThirdPartyToken
});
};
@@ -367,8 +366,8 @@ remoting.PinDialog.prototype.requestPairingIfNecessary = function(plugin) {
* @param {string} sharedSecret
*/
var onPairingComplete = function(clientId, sharedSecret) {
- that.host_.options.pairingInfo.clientId = clientId;
- that.host_.options.pairingInfo.sharedSecret = sharedSecret;
+ that.host_.options.setPairingInfo({'clientId': clientId,
+ 'sharedSecret': sharedSecret});
that.host_.options.save();
};
« no previous file with comments | « remoting/webapp/crd/js/desktop_viewport.js ('k') | remoting/webapp/crd/js/remoting_activity_test_driver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698