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

Unified Diff: remoting/webapp/crd/js/host_list.js

Issue 1004513002: Eliminated named constants for instances of remoting.Error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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.js
diff --git a/remoting/webapp/crd/js/host_list.js b/remoting/webapp/crd/js/host_list.js
index 81180152549a48df6607d5fec12f87b8c42ff9fa..f935e8b643ced94ff6f4d0c47cb6817c15b3f266 100644
--- a/remoting/webapp/crd/js/host_list.js
+++ b/remoting/webapp/crd/js/host_list.js
@@ -48,7 +48,7 @@ remoting.HostList = function(table, noHosts, errorMsg, errorButton,
/** @private {Array<remoting.Host>} */
this.hosts_ = [];
/** @private {!remoting.Error} */
- this.lastError_ = remoting.Error.NONE;
+ this.lastError_ = remoting.Error.none();
/** @private {remoting.LocalHostSection} */
this.localHostSection_ = new remoting.LocalHostSection(
/** @type {HTMLElement} */ (document.querySelector('.daemon-control')),
@@ -157,7 +157,7 @@ remoting.HostList.prototype.refresh = function(onDone) {
* @private
*/
remoting.HostList.prototype.onHostListResponse_ = function(onDone, hosts) {
- this.lastError_ = remoting.Error.NONE;
+ this.lastError_ = remoting.Error.none();
this.hosts_ = hosts;
this.sortHosts_();
this.save_();

Powered by Google App Engine
This is Rietveld 408576698