summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-16 19:42:46 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-16 19:42:46 +0000
commit2152600d98b5c802fec1caba84ae9d0cb16af235 (patch)
tree37be46839818f20cfefecf2a284e9352ead55bb8 /chrome/browser/resources
parenta643d62e025c82ad920117e833508f5def0d1deb (diff)
downloadchromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.zip
chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.tar.gz
chromium_src-2152600d98b5c802fec1caba84ae9d0cb16af235.tar.bz2
Log the OS error that getaddrinfo() failed with.
- Display it on the about:net-internals page - Collect it in the histogram Net.OSErrorsForGetAddrinfo. Review URL: http://codereview.chromium.org/2134004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/net_internals/logviewpainter.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/resources/net_internals/logviewpainter.js b/chrome/browser/resources/net_internals/logviewpainter.js
index d0dc90b..8d45c2f 100644
--- a/chrome/browser/resources/net_internals/logviewpainter.js
+++ b/chrome/browser/resources/net_internals/logviewpainter.js
@@ -46,7 +46,9 @@ PrintSourceEntriesAsText = function(sourceEntries) {
var entry = entries[i];
// Avoid printing the END for a BEGIN that was immediately before.
- if (entry.isEnd() && entry.begin && entry.begin.index == i - 1) {
+ // (Except if the END contains any extra parameters).
+ if (entry.isEnd() && !entry.orig.params && entry.begin &&
+ entry.begin.index == i - 1) {
continue;
}
@@ -153,7 +155,10 @@ function getTextForResponseHeadersExtraParam(entry) {
function getTextForEvent(entry) {
var text = '';
- if (entry.isBegin()) {
+ if (entry.isBegin() && entry.end && entry.end.index == entry.index + 1) {
+ // Don't prefix with '+' if we are going to collapse the END event.
+ text = ' ';
+ } else if (entry.isBegin()) {
text = '+' + text;
} else if (entry.isEnd()) {
text = '-' + text;