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

Unified Diff: remoting/webapp/crd/js/wcs_sandbox_container.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/wcs_sandbox_container.js
diff --git a/remoting/webapp/crd/js/wcs_sandbox_container.js b/remoting/webapp/crd/js/wcs_sandbox_container.js
index c39759879cbab9deb153b70e2adcb05b13b99abc..875bbc4b6cb0c6eee9c8cd615f56832dba46aa22 100644
--- a/remoting/webapp/crd/js/wcs_sandbox_container.js
+++ b/remoting/webapp/crd/js/wcs_sandbox_container.js
@@ -25,7 +25,7 @@ remoting.WcsSandboxContainer = function(sandbox) {
/** @type {?function(string):void}
* @private */
this.onConnected_ = null;
- /** @type {function(remoting.Error):void}
+ /** @type {function(!remoting.Error):void}
* @private */
this.onError_ = function(error) {};
/** @type {?function(string):void}
@@ -53,7 +53,7 @@ remoting.WcsSandboxContainer = function(sandbox) {
/**
* @param {function(string):void} onConnected Callback to be called when WCS is
* connected. May be called synchronously if WCS is already connected.
- * @param {function(remoting.Error):void} onError called in case of an error.
+ * @param {function(!remoting.Error):void} onError called in case of an error.
* @return {void} Nothing.
*/
remoting.WcsSandboxContainer.prototype.connect = function(
@@ -151,7 +151,7 @@ remoting.WcsSandboxContainer.prototype.onMessage_ = function(event) {
break;
case 'onError':
- /** @type {remoting.Error} */
+ /** @type {!remoting.Error} */
var error = event.data['error'];
if (error === undefined) {
console.error('onError: missing error code');

Powered by Google App Engine
This is Rietveld 408576698