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

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

Issue 1003433002: Updated remoting.xhr API to use promises. Removed access to the native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spy-promise
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 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);
};

Powered by Google App Engine
This is Rietveld 408576698