| Index: remoting/webapp/crd/js/host_setup_dialog.js
|
| diff --git a/remoting/webapp/crd/js/host_setup_dialog.js b/remoting/webapp/crd/js/host_setup_dialog.js
|
| index a97d708537269f46a6167a07341e6b56200f3aee..072aff6642aee000ae569ddc9310c425e129d61a 100644
|
| --- a/remoting/webapp/crd/js/host_setup_dialog.js
|
| +++ b/remoting/webapp/crd/js/host_setup_dialog.js
|
| @@ -163,9 +163,9 @@ remoting.HostSetupDialog.prototype.showForStart = function() {
|
| // Although we don't need an access token in order to start the host,
|
| // using callWithToken here ensures consistent error handling in the
|
| // case where the refresh token is invalid.
|
| - remoting.identity.callWithToken(
|
| + remoting.identity.getToken().then(
|
| that.showForStartWithToken_.bind(that, state),
|
| - remoting.showErrorMessage);
|
| + remoting.Error.handler(remoting.showErrorMessage));
|
| };
|
|
|
| this.hostController_.getLocalHostState(onState);
|
|
|