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

Unified Diff: chrome/browser/resources/net_internals/dataview.js

Issue 6708030: NetLog: Removes private information from net-internals events tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: License headers updated. Sigh. Created 9 years, 9 months 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 | chrome/browser/resources/net_internals/eventsview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/dataview.js
===================================================================
--- chrome/browser/resources/net_internals/dataview.js (revision 78565)
+++ chrome/browser/resources/net_internals/dataview.js (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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,8 +28,11 @@
DivView.call(this, mainBoxId);
this.textPre_ = document.getElementById(outputTextBoxId);
- this.securityStrippingCheckbox_ =
+
+ var securityStrippingCheckbox =
document.getElementById(securityStrippingCheckboxId);
+ securityStrippingCheckbox.onclick =
+ this.onSetSecurityStripping_.bind(this, securityStrippingCheckbox);
var byteLoggingCheckbox = document.getElementById(byteLoggingCheckboxId);
byteLoggingCheckbox.onclick =
@@ -118,6 +121,22 @@
};
/**
+ * Depending on the value of the checkbox, enables or disables stripping
+ * cookies and passwords from log dumps and displayed events.
+ */
+DataView.prototype.onSetSecurityStripping_ =
+ function(securityStrippingCheckbox) {
+ g_browser.setSecurityStripping(securityStrippingCheckbox.checked);
+};
+
+/**
+ * Clears displayed text when security stripping is toggled.
+ */
+DataView.prototype.onSecurityStrippingChanged = function() {
+ this.setText_('');
+}
+
+/**
* If not already waiting for results from all updates, triggers all
* updates and starts waiting for them to complete.
*/
@@ -409,8 +428,7 @@
' [start=' + startDate.toLocaleString() + ']');
out.push('------------------------------------------');
- out.push(PrintSourceEntriesAsText(eventList,
- this.securityStrippingCheckbox_.checked));
+ out.push(PrintSourceEntriesAsText(eventList));
}
};
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/eventsview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698