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

Unified Diff: remoting/webapp/browser_test/mock_host_list_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_host_list_api.js
diff --git a/remoting/webapp/browser_test/mock_host_list_api.js b/remoting/webapp/browser_test/mock_host_list_api.js
index 2fca22060590987f9d501c88be255891823b639c..1d37941420f6b3ddd0363474bc5d07062c1bbdc1 100644
--- a/remoting/webapp/browser_test/mock_host_list_api.js
+++ b/remoting/webapp/browser_test/mock_host_list_api.js
@@ -42,7 +42,7 @@ remoting.MockHostListApi = function() {
/**
* @param {function(Array<remoting.Host>):void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
*/
remoting.MockHostListApi.prototype.get = function(onDone, onError) {
remoting.mockIdentity.validateTokenAndCall(onDone, onError, [this.hosts]);
@@ -53,7 +53,7 @@ remoting.MockHostListApi.prototype.get = function(onDone, onError) {
* @param {string} hostName
* @param {string} hostPublicKey
* @param {function():void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
*/
remoting.MockHostListApi.prototype.put =
function(hostId, hostName, hostPublicKey, onDone, onError) {
@@ -79,7 +79,7 @@ remoting.MockHostListApi.prototype.put =
/**
* @param {string} hostId
* @param {function():void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
*/
remoting.MockHostListApi.prototype.remove =
function(hostId, onDone, onError) {

Powered by Google App Engine
This is Rietveld 408576698