| Index: remoting/webapp/crd/js/it2me_connect_flow.js
|
| diff --git a/remoting/webapp/crd/js/it2me_connect_flow.js b/remoting/webapp/crd/js/it2me_connect_flow.js
|
| index 20f42c2c65701f73323d2795183679a21ab96474..42b5d08055bbac3f29ccede30089f7465adba967 100644
|
| --- a/remoting/webapp/crd/js/it2me_connect_flow.js
|
| +++ b/remoting/webapp/crd/js/it2me_connect_flow.js
|
| @@ -88,20 +88,17 @@ remoting.It2MeConnectFlow.prototype.verifyAccessCode_ = function(accessCode) {
|
| * Continues an IT2Me connection once an access token has been obtained.
|
| *
|
| * @param {string} token An OAuth2 access token.
|
| - * @return {Promise<XMLHttpRequest>}
|
| + * @return {Promise<remoting.Xhr.Response>}
|
| * @private
|
| */
|
| remoting.It2MeConnectFlow.prototype.getHostInfo_ = function(token) {
|
| var that = this;
|
| - return new Promise(function(resolve) {
|
| - remoting.xhr.start({
|
| - method: 'GET',
|
| - url: remoting.settings.DIRECTORY_API_BASE_URL + '/support-hosts/' +
|
| - encodeURIComponent(that.hostId_),
|
| - onDone: resolve,
|
| - oauthToken: token
|
| - });
|
| - });
|
| + return new remoting.Xhr({
|
| + method: 'GET',
|
| + url: remoting.settings.DIRECTORY_API_BASE_URL + '/support-hosts/' +
|
| + encodeURIComponent(that.hostId_),
|
| + oauthToken: token
|
| + }).start();
|
| };
|
|
|
| /**
|
|
|