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

Unified Diff: remoting/webapp/crd/js/identity.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
Index: remoting/webapp/crd/js/identity.js
diff --git a/remoting/webapp/crd/js/identity.js b/remoting/webapp/crd/js/identity.js
index b65f37512b836be829dbce1204b02545af5c708f..bc45863a24c4155405b5dc1504e27b72ed77751d 100644
--- a/remoting/webapp/crd/js/identity.js
+++ b/remoting/webapp/crd/js/identity.js
@@ -188,7 +188,7 @@ remoting.Identity.prototype.onAuthComplete_ = function(token) {
: 'Unknown error.';
console.error(error_message);
var error = (error_message == USER_CANCELLED) ?
- remoting.Error.CANCELLED : remoting.Error.NOT_AUTHENTICATED;
+ remoting.Error.Tag.CANCELLED : remoting.Error.Tag.NOT_AUTHENTICATED;
authTokenDeferred.reject(error);
this.authTokenDeferred_ = null;
return;

Powered by Google App Engine
This is Rietveld 408576698