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

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

Issue 8775066: The webapp uses localStorage to decide whether logging to the server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/me2mom/server_log_entry.js
diff --git a/remoting/webapp/me2mom/server_log_entry.js b/remoting/webapp/me2mom/server_log_entry.js
index 0b1f23f9aea003e9e2b0b4a6b27a07c553c47803..892a91a871f8dd9935c035bd970170e3b09e8d4e 100644
--- a/remoting/webapp/me2mom/server_log_entry.js
+++ b/remoting/webapp/me2mom/server_log_entry.js
@@ -27,6 +27,9 @@ remoting.ServerLogEntry.prototype.VALUE_EVENT_NAME_SESSION_STATE_ =
'session-state';
/** @private */
+remoting.ServerLogEntry.prototype.KEY_ID_ = 'id';
+
+/** @private */
remoting.ServerLogEntry.prototype.KEY_ROLE_ = 'role';
/** @private */
remoting.ServerLogEntry.prototype.VALUE_ROLE_CLIENT_ = 'client';
@@ -159,6 +162,15 @@ remoting.ServerLogEntry.prototype.makeClientSessionStateChange =
};
/**
+ * Adds an ID field to this log entry.
+ *
+ * @param {string} id
+ */
+remoting.ServerLogEntry.prototype.addIdField = function(id) {
+ this.set(this.KEY_ID_, id);
+}
+
+/**
* Adds fields describing the host to this log entry.
*/
remoting.ServerLogEntry.prototype.addHostFields = function() {
« remoting/webapp/me2mom/log_to_server.js ('K') | « remoting/webapp/me2mom/log_to_server.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698