| Index: remoting/webapp/crd/js/host_list_api_gcd_impl.js
|
| diff --git a/remoting/webapp/crd/js/host_list_api_gcd_impl.js b/remoting/webapp/crd/js/host_list_api_gcd_impl.js
|
| index e29a0d00b84547852ee085d46c1b12b514ad48c4..4e108330c0ca96a168683c6706ca12bafb78eb2f 100644
|
| --- a/remoting/webapp/crd/js/host_list_api_gcd_impl.js
|
| +++ b/remoting/webapp/crd/js/host_list_api_gcd_impl.js
|
| @@ -40,7 +40,7 @@ remoting.HostListApiGcdImpl.prototype.register = function(
|
| }
|
| };
|
|
|
| - return /** @type {!Promise<string>} */ (
|
| + return /** @type {!Promise<remoting.HostListApi.RegisterResult>} */ (
|
| this.gcd_.insertRegistrationTicket().
|
| then(function(ticket) {
|
| return self.gcd_.patchRegistrationTicket(
|
| @@ -50,7 +50,10 @@ remoting.HostListApiGcdImpl.prototype.register = function(
|
| return self.gcd_.finalizeRegistrationTicket(ticket.id);
|
| }).
|
| then(function(/**remoting.gcd.RegistrationTicket*/ ticket) {
|
| - return ticket.robotAccountAuthorizationCode;
|
| + return {
|
| + authCode: ticket.robotAccountAuthorizationCode,
|
| + email: ticket.robotAccountEmail
|
| + };
|
| }).
|
| catch(function(error) {
|
| console.error('Error registering device with GCD: ' + error);
|
|
|