summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/net_internals/source_entry.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/net_internals/source_entry.js')
-rw-r--r--chrome/browser/resources/net_internals/source_entry.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/resources/net_internals/source_entry.js b/chrome/browser/resources/net_internals/source_entry.js
index cc3b429..b223466 100644
--- a/chrome/browser/resources/net_internals/source_entry.js
+++ b/chrome/browser/resources/net_internals/source_entry.js
@@ -202,10 +202,14 @@ var SourceEntry = (function() {
return e;
}
if (this.entries_.length >= 2) {
- if (this.entries_[0].type == EventType.SOCKET_POOL_CONNECT_JOB ||
- this.entries_[1].type == EventType.UDP_CONNECT) {
+ // Needed for compatability with log dumps prior to M26.
+ // TODO(mmenke): Remove this.
+ if (this.entries_[0].type == EventType.SOCKET_POOL_CONNECT_JOB &&
+ this.entries_[0].params == undefined) {
return this.entries_[1];
}
+ if (this.entries_[1].type == EventType.UDP_CONNECT)
+ return this.entries_[1];
if (this.entries_[0].type == EventType.REQUEST_ALIVE &&
this.entries_[0].params == undefined) {
var start_index = 1;