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

Unified Diff: remoting/webapp/app_remoting/js/app_remoting.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/app_remoting/js/app_remoting.js
diff --git a/remoting/webapp/app_remoting/js/app_remoting.js b/remoting/webapp/app_remoting/js/app_remoting.js
index 636b4200c03288d5cacfa07152b281b87004baad..8c1e6c51b6f8e690566dca11bc7bd2d1bc4f63ee 100644
--- a/remoting/webapp/app_remoting/js/app_remoting.js
+++ b/remoting/webapp/app_remoting/js/app_remoting.js
@@ -191,7 +191,7 @@ remoting.AppRemoting.prototype.init = function(connector) {
that.runApplicationUrl(), parseAppHostResponse, '', headers);
};
- /** @param {remoting.Error} error */
+ /** @param {!remoting.Error} error */
Jamie 2015/02/26 18:57:42 We haven't tended to be very rigourous about using
John Williams 2015/02/27 21:42:11 I'm a fan. It catches some errors and I've never
var onError = function(error) {
that.handleError(error);
};
@@ -263,7 +263,7 @@ remoting.AppRemoting.prototype.handleDisconnected = function() {
* Called when the current session's connection has failed.
*
* @param {remoting.SessionConnector} connector
- * @param {remoting.Error} error
+ * @param {!remoting.Error} error
* @return {void} Nothing.
*/
remoting.AppRemoting.prototype.handleConnectionFailed = function(
@@ -339,7 +339,7 @@ remoting.AppRemoting.prototype.handleExtensionMessage = function(
/**
* Called when an error needs to be displayed to the user.
*
- * @param {remoting.Error} errorTag The error to be localized and displayed.
+ * @param {!remoting.Error} errorTag The error to be localized and displayed.
* @return {void} Nothing.
*/
remoting.AppRemoting.prototype.handleError = function(errorTag) {
« no previous file with comments | « no previous file | remoting/webapp/app_remoting/js/loading_window.js » ('j') | remoting/webapp/crd/js/desktop_remoting.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698