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

Unified Diff: remoting/webapp/crd/js/host_list_api_impl.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: Requested changes. 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/crd/js/host_list_api_impl.js
diff --git a/remoting/webapp/crd/js/host_list_api_impl.js b/remoting/webapp/crd/js/host_list_api_impl.js
index fea5e696489c261d1b689c5f7c1d778edc322266..838bafa9e6d0a46b9cb7eac776a1e7452f73f149 100644
--- a/remoting/webapp/crd/js/host_list_api_impl.js
+++ b/remoting/webapp/crd/js/host_list_api_impl.js
@@ -23,7 +23,7 @@ remoting.HostListApiImpl = function() {
* Fetch the list of hosts for a user.
*
* @param {function(Array<remoting.Host>):void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
*/
remoting.HostListApiImpl.prototype.get = function(onDone, onError) {
/** @type {function(XMLHttpRequest):void} */
@@ -45,7 +45,7 @@ remoting.HostListApiImpl.prototype.get = function(onDone, onError) {
* Update the information for a host.
*
* @param {function():void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
* @param {string} hostId
* @param {string} hostName
* @param {string} hostPublicKey
@@ -76,7 +76,7 @@ remoting.HostListApiImpl.prototype.put =
* Delete a host.
*
* @param {function():void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
* @param {string} hostId
*/
remoting.HostListApiImpl.prototype.remove = function(hostId, onDone, onError) {
@@ -98,7 +98,7 @@ remoting.HostListApiImpl.prototype.remove = function(hostId, onDone, onError) {
* passed to the callback.
*
* @param {function(Array<remoting.Host>):void} onDone
- * @param {function(remoting.Error):void} onError
+ * @param {function(!remoting.Error):void} onError
* @param {XMLHttpRequest} xhr
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698