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

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

Issue 10392169: net-internals: Fix descriptions of URL_REQUESTS with URL_REQUEST_BLOCKED_ON_DELEGATE events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/source_entry.js
===================================================================
--- chrome/browser/resources/net_internals/source_entry.js (revision 137673)
+++ chrome/browser/resources/net_internals/source_entry.js (working copy)
@@ -194,11 +194,20 @@
return e;
}
if (this.entries_.length >= 2) {
- if (this.entries_[0].type == LogEventType.REQUEST_ALIVE ||
- this.entries_[0].type == LogEventType.SOCKET_POOL_CONNECT_JOB ||
+ if (this.entries_[0].type == LogEventType.SOCKET_POOL_CONNECT_JOB ||
this.entries_[1].type == LogEventType.UDP_CONNECT) {
return this.entries_[1];
}
+ if (this.entries_[0].type == LogEventType.REQUEST_ALIVE) {
+ var start_index = 1;
+ // Skip over URL_REQUEST_BLOCKED_ON_DELEGATE events for URL_REQUESTs.
+ while (start_index + 1 < this.entries_.length &&
+ this.entries_[start_index].type ==
+ LogEventType.URL_REQUEST_BLOCKED_ON_DELEGATE) {
+ ++start_index;
+ }
+ return this.entries_[start_index];
+ }
}
return this.entries_[0];
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698