| Index: remoting/webapp/host_controller.js
|
| diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
|
| index dfcfcf6288f82bf4eb53e0c6f298f6ae59e8e741..34278ac73b44788a03b17a99de7f3ffe3754346b 100644
|
| --- a/remoting/webapp/host_controller.js
|
| +++ b/remoting/webapp/host_controller.js
|
| @@ -431,9 +431,13 @@ remoting.HostController.prototype.updatePin = function(newPin, onDone,
|
| * callback.
|
| */
|
| remoting.HostController.prototype.getLocalHostState = function(onDone) {
|
| - this.hostDaemonFacade_.getDaemonState(onDone, function(error) {
|
| - onDone(remoting.HostController.State.UNKNOWN);
|
| - });
|
| + /** @param {remoting.Error} error */
|
| + function onError(error) {
|
| + onDone((error == remoting.Error.MISSING_PLUGIN) ?
|
| + remoting.HostController.State.NOT_INSTALLED :
|
| + remoting.HostController.State.UNKNOWN);
|
| + }
|
| + this.hostDaemonFacade_.getDaemonState(onDone, onError);
|
| };
|
|
|
| /**
|
|
|