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

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

Issue 8558034: Disable logging from the chromoting client to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/log_to_server.js
diff --git a/remoting/webapp/me2mom/log_to_server.js b/remoting/webapp/me2mom/log_to_server.js
index e65260b4ccbf7402ddf45e68e8d5e05d5640baea..d42bb7085d06583502aa2a2a8a4aae98ec833be2 100644
--- a/remoting/webapp/me2mom/log_to_server.js
+++ b/remoting/webapp/me2mom/log_to_server.js
@@ -17,6 +17,7 @@ var remoting = remoting || {};
*/
remoting.LogToServer = function() {
/** @type Array.<string> */ this.pendingEntries = [];
+ /** @type boolean */ this.enabled = false;
};
/**
@@ -42,6 +43,9 @@ remoting.LogToServer.prototype.logClientSessionStateChange =
* @param {remoting.ServerLogEntry} entry
*/
remoting.LogToServer.prototype.log = function(entry) {
+ if (!this.enabled) {
+ return;
+ }
// Store a stanza for the entry
this.pendingEntries.push(entry.toStanza());
// Stop if there's no connection to the server.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698