| 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));
|
| }
|
| };
|
|
|
|
|