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

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
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 e8317a09e27cfbaf3f0aaacf48b236ee0b28c3ec..c0387201eaee3b1b4482764daace714fd41e476b 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_();
};

Powered by Google App Engine
This is Rietveld 408576698