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

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

Issue 1066003007: Include application ID in log entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 00cab93871a5a41da92d66a67afec8e13e973d67..eeb7948b9b2567f55913d920d08eff6529544506 100644
--- a/remoting/webapp/crd/js/server_log_entry.js
+++ b/remoting/webapp/crd/js/server_log_entry.js
@@ -175,6 +175,9 @@ remoting.ServerLogEntry.VALUE_MODE_APP_REMOTING_ = 'lgapp';
/** @private */
remoting.ServerLogEntry.VALUE_MODE_UNKNOWN_ = 'unknown';
+/** @private */
+remoting.ServerLogEntry.KEY_APP_ID_ = 'application-id';
+
/**
* Sets one field in this log entry.
*
@@ -485,6 +488,16 @@ remoting.ServerLogEntry.prototype.addModeField = function() {
};
/**
+ * Adds a field specifying the application ID to this log entry.
+ * @param {string} appId The application ID to use.
+ * @return {void} Nothin.
+ */
+remoting.ServerLogEntry.prototype.addApplicationId = function(appId) {
+ this.set_(remoting.ServerLogEntry.KEY_APP_ID_, appId);
+};
+
+
+/**
* Gets the value of the mode field to be put in a log entry.
*
* @private
« remoting/webapp/crd/js/log_to_server.js ('K') | « remoting/webapp/crd/js/log_to_server.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698