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

Unified Diff: remoting/webapp/crd/js/mock_identity.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/mock_identity.js
diff --git a/remoting/webapp/crd/js/mock_identity.js b/remoting/webapp/crd/js/mock_identity.js
index 48d0366efcd24a0e4b7f4aa0a5ae554678b74031..66db46d44880f8db3f9e5e31579a60d4dd29ce88 100644
--- a/remoting/webapp/crd/js/mock_identity.js
+++ b/remoting/webapp/crd/js/mock_identity.js
@@ -79,7 +79,8 @@ remoting.MockIdentity.validateTokenAndCall =
0);
} else {
window.setTimeout(
- onError.bind(null, remoting.Error.AUTHENTICATION_FAILED),
+ onError.bind(null, new remoting.Error(
+ remoting.Error.Tag.AUTHENTICATION_FAILED)),
0);
}
};

Powered by Google App Engine
This is Rietveld 408576698