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

Unified Diff: remoting/webapp/crd/js/host_install_dialog.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/host_daemon_facade.js ('k') | remoting/webapp/crd/js/host_installer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/host_install_dialog.js
diff --git a/remoting/webapp/crd/js/host_install_dialog.js b/remoting/webapp/crd/js/host_install_dialog.js
index bec2a01f8b9416e163a00c2601c4cc395eb0f87b..d10297fa74c98377be91e1218a6bf66e8631c158 100644
--- a/remoting/webapp/crd/js/host_install_dialog.js
+++ b/remoting/webapp/crd/js/host_install_dialog.js
@@ -68,7 +68,7 @@ remoting.HostInstallDialog.prototype.show = function(onDone, onError) {
that.continueInstallButton_.click();
that.hostInstaller_.cancel();
}, function(){
- that.onErrorHandler_(remoting.Error.CANCELLED);
+ that.onErrorHandler_(new remoting.Error(remoting.Error.Tag.CANCELLED));
that.hostInstaller_.cancel();
});
};
@@ -103,7 +103,7 @@ remoting.HostInstallDialog.prototype.onCancelClicked_ = function() {
this.cancelInstallButton_.removeEventListener(
'click', this.onCancelClickedHandler_, false);
this.hostInstaller_.cancel();
- this.onErrorHandler_(remoting.Error.CANCELLED);
+ this.onErrorHandler_(new remoting.Error(remoting.Error.Tag.CANCELLED));
};
remoting.HostInstallDialog.prototype.onRetryClicked_ = function() {
« no previous file with comments | « remoting/webapp/crd/js/host_daemon_facade.js ('k') | remoting/webapp/crd/js/host_installer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698