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

Unified Diff: remoting/webapp/crd/js/host_install_dialog.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_install_dialog.js
diff --git a/remoting/webapp/crd/js/host_install_dialog.js b/remoting/webapp/crd/js/host_install_dialog.js
index ab072e830eecafb866a892183a70526a8714be51..30166f803238fdd5ca3df3aa2aee2a824cfa108e 100644
--- a/remoting/webapp/crd/js/host_install_dialog.js
+++ b/remoting/webapp/crd/js/host_install_dialog.js
@@ -30,7 +30,7 @@ remoting.HostInstallDialog = function() {
/** @private*/
this.onDoneHandler_ = function() {};
- /** @param {remoting.Error} error @private */
+ /** @param {!remoting.Error} error @private */
this.onErrorHandler_ = function(error) {};
/**
@@ -46,7 +46,7 @@ remoting.HostInstallDialog = function() {
* @param {function():void} onDone Callback called when user clicks Ok,
* presumably after installing the host. The handler must verify that the host
* has been installed and call tryAgain() otherwise.
- * @param {function(remoting.Error):void} onError Callback called when user
+ * @param {function(!remoting.Error):void} onError Callback called when user
* clicks Cancel button or there is some other unexpected error.
* @return {void}
*/
@@ -60,7 +60,7 @@ remoting.HostInstallDialog.prototype.show = function(onDone, onError) {
/** @type {function():void} */
this.onDoneHandler_ = onDone;
- /** @type {function(remoting.Error):void} */
+ /** @type {function(!remoting.Error):void} */
this.onErrorHandler_ = onError;
/** @type {remoting.HostInstaller} */

Powered by Google App Engine
This is Rietveld 408576698