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

Unified Diff: remoting/webapp/crd/js/oauth2.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/oauth2.js
diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js
index 69edafc3af679888d4ce7e00ca651d03775c8915..6961b8d50b259652adf7053f6dd12d8b6a1b3ea9 100644
--- a/remoting/webapp/crd/js/oauth2.js
+++ b/remoting/webapp/crd/js/oauth2.js
@@ -375,7 +375,7 @@ remoting.OAuth2.prototype.getToken = function() {
resolve(that.getAccessTokenInternal_()['token']);
}
} else {
- reject(remoting.Error.NOT_AUTHENTICATED);
+ reject(new remoting.Error(remoting.Error.Tag.NOT_AUTHENTICATED));
}
});
};

Powered by Google App Engine
This is Rietveld 408576698