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

Unified Diff: remoting/webapp/browser_test/mock_oauth2_api.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: Smaller diff. Created 5 years, 10 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/browser_test/mock_oauth2_api.js
diff --git a/remoting/webapp/browser_test/mock_oauth2_api.js b/remoting/webapp/browser_test/mock_oauth2_api.js
index a64fe19a8efe378a26913148910bfdff941f8115..412ddaa182684b60b8c994114910be4496f0d64f 100644
--- a/remoting/webapp/browser_test/mock_oauth2_api.js
+++ b/remoting/webapp/browser_test/mock_oauth2_api.js
@@ -32,7 +32,7 @@ remoting.MockOAuth2Api = function() {
/**
* @param {function(string, number): void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
* @param {string} clientId
* @param {string} clientSecret
* @param {string} refreshToken
@@ -47,7 +47,7 @@ remoting.MockOAuth2Api.prototype.refreshAccessToken = function(
/**
* @param {function(string, string, number): void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
* @param {string} clientId
* @param {string} clientSecret
* @param {string} code
@@ -63,7 +63,7 @@ remoting.MockOAuth2Api.prototype.exchangeCodeForTokens = function(
/**
* @param {function(string,string)} onDone
- * @param {function(remoting.Error)} onError
+ * @param {function(!remoting.Error)} onError
* @param {string} token
*/
remoting.MockOAuth2Api.prototype.getEmail = function(onDone, onError, token) {
@@ -73,7 +73,7 @@ remoting.MockOAuth2Api.prototype.getEmail = function(onDone, onError, token) {
/**
* @param {function(string,string)} onDone
- * @param {function(remoting.Error)} onError
+ * @param {function(!remoting.Error)} onError
* @param {string} token
*/
remoting.MockOAuth2Api.prototype.getUserInfo =

Powered by Google App Engine
This is Rietveld 408576698