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

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

Issue 1013633003: remoting.Identity unit-tests and fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix jscompile errors. 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/base/js/base_event_hook_unittest.js ('k') | remoting/webapp/crd/js/identity_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/identity.js
diff --git a/remoting/webapp/crd/js/identity.js b/remoting/webapp/crd/js/identity.js
index bc45863a24c4155405b5dc1504e27b72ed77751d..e940dac3d3802329020436ac6bce4ff0c58f285d 100644
--- a/remoting/webapp/crd/js/identity.js
+++ b/remoting/webapp/crd/js/identity.js
@@ -188,7 +188,8 @@ remoting.Identity.prototype.onAuthComplete_ = function(token) {
: 'Unknown error.';
console.error(error_message);
var error = (error_message == USER_CANCELLED) ?
- remoting.Error.Tag.CANCELLED : remoting.Error.Tag.NOT_AUTHENTICATED;
+ new remoting.Error(remoting.Error.Tag.CANCELLED) :
+ new remoting.Error(remoting.Error.Tag.NOT_AUTHENTICATED);
authTokenDeferred.reject(error);
this.authTokenDeferred_ = null;
return;
« no previous file with comments | « remoting/webapp/base/js/base_event_hook_unittest.js ('k') | remoting/webapp/crd/js/identity_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698