| 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 8fb02de0230276e7b37b48cae4ed1d836a2a21aa..11a2509ddb1f8bc9a8076902b4192cf91c00e9d8 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);
|
|
|