| Index: remoting/webapp/crd/js/host_screen.js
|
| diff --git a/remoting/webapp/crd/js/host_screen.js b/remoting/webapp/crd/js/host_screen.js
|
| index 13dcd6a8d7333cae22cf4f4c5cffccaaced0abb4..798e0af8bf494bc722bc6b6a1b6ed81833232e00 100644
|
| --- a/remoting/webapp/crd/js/host_screen.js
|
| +++ b/remoting/webapp/crd/js/host_screen.js
|
| @@ -169,10 +169,10 @@ function onHostStateChanged_(state) {
|
| cleanUp();
|
| } else if (state == remoting.HostSession.State.ERROR) {
|
| console.error('Host state: ERROR');
|
| - showShareError_(remoting.Error.UNEXPECTED);
|
| + showShareError_(remoting.Error.unexpected());
|
| } else if (state == remoting.HostSession.State.INVALID_DOMAIN_ERROR) {
|
| console.error('Host state: INVALID_DOMAIN_ERROR');
|
| - showShareError_(remoting.Error.INVALID_HOST_DOMAIN);
|
| + showShareError_(new remoting.Error(remoting.Error.Tag.INVALID_HOST_DOMAIN));
|
| } else {
|
| console.error('Unknown state -> ' + state);
|
| }
|
| @@ -211,7 +211,7 @@ function it2meConnectFailed_() {
|
| // We probably want to add a new error code (with the corresponding error
|
| // message for sharing error.
|
| console.error('Cannot share desktop.');
|
| - showShareError_(remoting.Error.UNEXPECTED);
|
| + showShareError_(remoting.Error.unexpected());
|
| }
|
|
|
| function cleanUp() {
|
| @@ -237,7 +237,7 @@ remoting.cancelShare = function() {
|
| // the host plugin, like we do for the client, which should handle crash
|
| // reporting and it should use a more detailed error message than the
|
| // default 'generic' one. See crbug.com/94624
|
| - showShareError_(remoting.Error.UNEXPECTED);
|
| + showShareError_(remoting.Error.unexpected());
|
| }
|
| disableTimeoutCountdown_();
|
| };
|
|
|