diff options
author | ygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 11:12:13 +0000 |
---|---|---|
committer | ygorshenin@chromium.org <ygorshenin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 11:12:13 +0000 |
commit | 61d68f4f30b0cd17103ea368052acc9c43f22c65 (patch) | |
tree | c8a8c275792e21220aa745354c14c0b35f884b3a /chrome/browser/resources/net_internals | |
parent | f603f326d4fe4eaa0d65cc70d60e7d24ffa8d195 (diff) | |
download | chromium_src-61d68f4f30b0cd17103ea368052acc9c43f22c65.zip chromium_src-61d68f4f30b0cd17103ea368052acc9c43f22c65.tar.gz chromium_src-61d68f4f30b0cd17103ea368052acc9c43f22c65.tar.bz2 |
Revert 131963 - Added "Store Debug Logs" functionality. Logs from /var/log are gzipped
and stored on the fileshelf.
BUG=chromium-os:25700
TEST=
Review URL: http://codereview.chromium.org/9965072
TBR=ygorshenin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10069009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/net_internals')
3 files changed, 1 insertions, 49 deletions
diff --git a/chrome/browser/resources/net_internals/browser_bridge.js b/chrome/browser/resources/net_internals/browser_bridge.js index 5184f3a..7353b45 100644 --- a/chrome/browser/resources/net_internals/browser_bridge.js +++ b/chrome/browser/resources/net_internals/browser_bridge.js @@ -26,7 +26,6 @@ var BrowserBridge = (function() { this.httpThrottlingObservers_ = []; this.constantsObservers_ = []; this.crosONCFileParseObservers_ = []; - this.storeDebugLogsObservers_ = []; this.pollableDataHelpers_ = {}; this.pollableDataHelpers_.proxySettings = @@ -234,10 +233,6 @@ var BrowserBridge = (function() { this.send('importONCFile', [fileContent, passcode]); }, - storeDebugLogs: function() { - this.send('storeDebugLogs'); - }, - sendGetHttpPipeliningStatus: function() { this.send('getHttpPipeliningStatus'); }, @@ -330,11 +325,6 @@ var BrowserBridge = (function() { this.crosONCFileParseObservers_[i].onONCFileParse(error); }, - receivedStoreDebugLogs: function(status) { - for (var i = 0; i < this.storeDebugLogsObservers_.length; i++) - this.storeDebugLogsObservers_[i].onStoreDebugLogs(status); - }, - receivedHttpCacheInfo: function(info) { this.pollableDataHelpers_.httpCacheInfo.update(info); }, @@ -531,16 +521,6 @@ var BrowserBridge = (function() { }, /** - * Adds a listener for storing log file status. The observer will be called - * back with: - * - * observer.onStoreDebugLogs(status); - */ - addStoreDebugLogsObserver: function(observer) { - this.storeDebugLogsObservers_.push(observer); - }, - - /** * Adds a listener for HTTP throttling-related events. |observer| will be * called back when HTTP throttling is enabled/disabled, through: * diff --git a/chrome/browser/resources/net_internals/chromeos_view.html b/chrome/browser/resources/net_internals/chromeos_view.html index 098b04f..6b552ae 100644 --- a/chrome/browser/resources/net_internals/chromeos_view.html +++ b/chrome/browser/resources/net_internals/chromeos_view.html @@ -11,13 +11,4 @@ </div> <div id="chromeos-view-parse-status" hidden> </div> - <div id="chromeos-view-store-debug-logs-div"> - <h3>Store Logs</h3> - <input type="button" - id="chromeos-view-store-debug-logs" - value="Store Debug Logs"> - <label for="chromeos-view-store-debug-logs" - id="chromeos-view-store-debug-logs-status"> - </label> - </div> </div> diff --git a/chrome/browser/resources/net_internals/chromeos_view.js b/chrome/browser/resources/net_internals/chromeos_view.js index 61955ab..fea3e36 100644 --- a/chrome/browser/resources/net_internals/chromeos_view.js +++ b/chrome/browser/resources/net_internals/chromeos_view.js @@ -125,17 +125,7 @@ var CrosView = (function() { } /** - * Set storing debug logs status. - * - * @private - */ - function setStoreDebugLogsStatus_(status) { - $(CrosView.STORE_DEBUG_LOGS_STATUS_ID).innerText = status; - } - - /** - * Add event listeners for the file selection, passcode input - * fields and for the button for debug logs storing. + * Add event listeners for the file selection and passcode input fields. * * @private */ @@ -147,11 +137,6 @@ var CrosView = (function() { $(CrosView.PASSCODE_INPUT_ID).addEventListener('change', function(event) { setPasscode_(this.value); }, false); - - $(CrosView.STORE_DEBUG_LOGS_ID).addEventListener('click', function(event) { - $(CrosView.STORE_DEBUG_LOGS_STATUS_ID).innerText = ''; - g_browser.storeDebugLogs(); - }, false); } /** @@ -176,7 +161,6 @@ var CrosView = (function() { DivView.call(this, CrosView.MAIN_BOX_ID); g_browser.addCrosONCFileParseObserver(this); - g_browser.addStoreDebugLogsObserver(this); addEventListeners_(); } @@ -189,8 +173,6 @@ var CrosView = (function() { CrosView.PASSCODE_ID = 'chromeos-view-password-div'; CrosView.PASSCODE_INPUT_ID = 'chromeos-view-onc-password'; CrosView.PARSE_STATUS_ID = 'chromeos-view-parse-status'; - CrosView.STORE_DEBUG_LOGS_ID = 'chromeos-view-store-debug-logs'; - CrosView.STORE_DEBUG_LOGS_STATUS_ID = 'chromeos-view-store-debug-logs-status'; cr.addSingletonGetter(CrosView); @@ -199,7 +181,6 @@ var CrosView = (function() { __proto__: DivView.prototype, onONCFileParse: setParseStatus_, - onStoreDebugLogs: setStoreDebugLogsStatus_, }; return CrosView; |