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

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

Issue 1094133003: Added (incomplete) implementation of HostListApi using GCD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcd-client-fix
Patch Set: for submit Created 5 years, 8 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/build-webapp.py ('k') | remoting/webapp/crd/js/host_controller_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/host_controller.js
diff --git a/remoting/webapp/crd/js/host_controller.js b/remoting/webapp/crd/js/host_controller.js
index 8df1614adc03e56a39ab89fc31058fb5455a26b7..b8015721ee913f309cb5b1e1e262af9e75e518f6 100644
--- a/remoting/webapp/crd/js/host_controller.js
+++ b/remoting/webapp/crd/js/host_controller.js
@@ -182,21 +182,21 @@ remoting.HostController.prototype.start = function(hostPin, consent) {
var hostName = /** @type {string} */ (a[1]);
var keyPair = /** @type {remoting.KeyPair} */ (a[2]);
- return remoting.hostListApi.register(
+ return remoting.HostListApi.getInstance().register(
newHostId, hostName, keyPair.publicKey, hostClientId);
- }).then(function(/** string */ authCode) {
+ }).then(function(/** string */ result) {
hostRegistered = true;
- return authCode;
+ return result;
});
// Get XMPP creditials.
var xmppCredsPromise = authCodePromise.then(function(authCode) {
if (authCode) {
- // Use auth code supplied by registry.
+ // Use auth code supplied by Chromoting registry.
return that.hostDaemonFacade_.getCredentialsFromAuthCode(authCode);
} else {
// No authorization code returned, use regular Chrome
- // identitial credential flow.
+ // identity credential flow.
return remoting.identity.getEmail().then(function(/** string */ email) {
return {
userEmail: email,
« no previous file with comments | « remoting/webapp/build-webapp.py ('k') | remoting/webapp/crd/js/host_controller_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698