Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Unified Diff: remoting/webapp/crd/js/it2me_host_facade.js

Issue 955283002: Converted remoting.Error from an enum to a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/crd/js/it2me_connect_flow.js ('k') | remoting/webapp/crd/js/oauth2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/it2me_host_facade.js
diff --git a/remoting/webapp/crd/js/it2me_host_facade.js b/remoting/webapp/crd/js/it2me_host_facade.js
index 6a6bb01ecbb21e4b5e2284ac52ced05f353db574..2106ec8560350c4dace7eb138120027529a96c2a 100644
--- a/remoting/webapp/crd/js/it2me_host_facade.js
+++ b/remoting/webapp/crd/js/it2me_host_facade.js
@@ -132,7 +132,7 @@ remoting.It2MeHostFacade.prototype.connect =
if (!this.port_) {
console.error(
'remoting.It2MeHostFacade.connect() without initialization.');
- onError(remoting.Error.UNEXPECTED);
+ onError(remoting.Error.unexpected());
return;
}
@@ -268,7 +268,7 @@ remoting.It2MeHostFacade.prototype.onIncomingMessage_ =
case 'error':
console.error(getStringAttr(message, 'description'));
if (this.onError_) {
- this.onError_(remoting.Error.UNEXPECTED);
+ this.onError_(remoting.Error.unexpected());
}
break;
@@ -316,7 +316,7 @@ remoting.It2MeHostFacade.prototype.onHostDisconnect_ = function() {
} else {
console.error('Native Messaging port disconnected.');
this.port_ = null;
- this.onError_(remoting.Error.UNEXPECTED);
+ this.onError_(remoting.Error.unexpected());
}
};
« no previous file with comments | « remoting/webapp/crd/js/it2me_connect_flow.js ('k') | remoting/webapp/crd/js/oauth2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698