Disable logging from the chromoting client to the server.

R=jamiewalch@chromium.org

Review URL: http://codereview.chromium.org/8558034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110956 0039d316-1c4b-4281-b951-d872f2087c98
parent fe6ce592
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment