| 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 2d2d96e75d1829d8e5ebe34c6afcd50e953ecf43..92841cc77cbd46196cdf8f4c09aba7eb6d122dca 100644
|
| --- a/remoting/webapp/me2mom/log_to_server.js
|
| +++ b/remoting/webapp/me2mom/log_to_server.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -28,10 +28,6 @@ remoting.LogToServer = function() {
|
| this.sessionStartTime = 0;
|
| };
|
|
|
| -// Local storage key.
|
| -/** @private */
|
| -remoting.LogToServer.KEY_ENABLED_ = 'remoting.LogToServer.enabled';
|
| -
|
| // Constants used for generating a session ID.
|
| /** @private */
|
| remoting.LogToServer.SESSION_ID_ALPHABET_ =
|
| @@ -47,16 +43,6 @@ remoting.LogToServer.MAX_SESSION_ID_AGE = 24 * 60 * 60 * 1000;
|
| remoting.LogToServer.CONNECTION_STATS_ACCUMULATE_TIME = 60 * 1000;
|
|
|
| /**
|
| - * Enables or disables logging.
|
| - *
|
| - * @param {boolean} enabled whether logging is enabled
|
| - */
|
| -remoting.LogToServer.prototype.setEnabled = function(enabled) {
|
| - window.localStorage.setItem(remoting.LogToServer.KEY_ENABLED_,
|
| - enabled ? 'true' : 'false');
|
| -}
|
| -
|
| -/**
|
| * Logs a client session state change.
|
| *
|
| * @param {remoting.ClientSession.State} state
|
| @@ -168,9 +154,6 @@ remoting.LogToServer.prototype.logAccumulatedStatistics = function() {
|
| * @param {remoting.ServerLogEntry} entry
|
| */
|
| remoting.LogToServer.prototype.log = function(entry) {
|
| - if (!this.isEnabled()) {
|
| - return;
|
| - }
|
| // Send the stanza to the debug log.
|
| remoting.debug.log('Enqueueing log entry:');
|
| entry.toDebugLog(1);
|
| @@ -194,17 +177,6 @@ remoting.LogToServer.prototype.log = function(entry) {
|
| };
|
|
|
| /**
|
| - * Whether logging is enabled.
|
| - *
|
| - * @private
|
| - * @return {boolean} whether logging is enabled
|
| - */
|
| -remoting.LogToServer.prototype.isEnabled = function() {
|
| - var value = window.localStorage.getItem(remoting.LogToServer.KEY_ENABLED_);
|
| - return (value == 'true');
|
| -};
|
| -
|
| -/**
|
| * Sets the session ID to a random string.
|
| *
|
| * @private
|
|
|