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

Unified Diff: remoting/webapp/browser_test/mock_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
« no previous file with comments | « remoting/webapp/browser_test/mock_host_list_api.js ('k') | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/browser_test/mock_identity.js
diff --git a/remoting/webapp/browser_test/mock_identity.js b/remoting/webapp/browser_test/mock_identity.js
index 48d0366efcd24a0e4b7f4aa0a5ae554678b74031..66db46d44880f8db3f9e5e31579a60d4dd29ce88 100644
--- a/remoting/webapp/browser_test/mock_identity.js
+++ b/remoting/webapp/browser_test/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);
}
};
« no previous file with comments | « remoting/webapp/browser_test/mock_host_list_api.js ('k') | remoting/webapp/crd/js/client_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698