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

Unified Diff: remoting/webapp/crd/js/server_log_entry.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/server_log_entry.js
diff --git a/remoting/webapp/crd/js/server_log_entry.js b/remoting/webapp/crd/js/server_log_entry.js
index 6a6dd0f4aeda267e18337ea3c31d17b0e5783c18..130056c8aeaa2a78f2de5c4905117ec8f821ba2c 100644
--- a/remoting/webapp/crd/js/server_log_entry.js
+++ b/remoting/webapp/crd/js/server_log_entry.js
@@ -231,7 +231,7 @@ remoting.ServerLogEntry.makeClientSessionStateChange = function(state,
remoting.ServerLogEntry.VALUE_EVENT_NAME_SESSION_STATE_);
entry.set_(remoting.ServerLogEntry.KEY_SESSION_STATE_,
remoting.ServerLogEntry.getValueForSessionState_(state));
- if (connectionError.tag != remoting.Error.NONE) {
+ if (connectionError.tag.isError()) {
Jamie 2015/03/11 22:16:38 isError() is a method on Error, not Tag?
John Williams 2015/03/12 02:46:20 Done.
entry.set_(remoting.ServerLogEntry.KEY_CONNECTION_ERROR_,
remoting.ServerLogEntry.getValueForError_(connectionError));
}

Powered by Google App Engine
This is Rietveld 408576698