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

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

Issue 1004513002: Eliminated named constants for instances of remoting.Error. (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/l10n.js ('k') | remoting/webapp/crd/js/mock_host_list_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/me2me_connect_flow.js
diff --git a/remoting/webapp/crd/js/me2me_connect_flow.js b/remoting/webapp/crd/js/me2me_connect_flow.js
index 59cd4eeefed9d01ae73e2ea529e50c0e9955e55e..6c52febebf14200fb64a50ea746b60c153cf2162 100644
--- a/remoting/webapp/crd/js/me2me_connect_flow.js
+++ b/remoting/webapp/crd/js/me2me_connect_flow.js
@@ -74,7 +74,7 @@ remoting.HostNeedsUpdateDialog.prototype.onOK_ = function() {
/** @private */
remoting.HostNeedsUpdateDialog.prototype.onCancel_ = function() {
- this.deferred_.reject(remoting.Error.CANCELLED);
+ this.deferred_.reject(new remoting.Error(remoting.Error.Tag.CANCELLED));
this.cleanup_();
};
@@ -163,7 +163,7 @@ remoting.PinDialog.prototype.onConnect_ = function() {
/** @private */
remoting.PinDialog.prototype.onCancel_ = function() {
- this.deferred_.reject(remoting.Error.CANCELLED);
+ this.deferred_.reject(new remoting.Error(remoting.Error.Tag.CANCELLED));
remoting.setMode(remoting.AppMode.HOME);
};
« no previous file with comments | « remoting/webapp/crd/js/l10n.js ('k') | remoting/webapp/crd/js/mock_host_list_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698