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

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

Issue 1994006: Add the requests dumps to the text summary on chrome://net2#data (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 | « chrome/browser/resources/net_internals/main.css ('k') | chrome/browser/resources/net_internals/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/sourceentry.js
===================================================================
--- chrome/browser/resources/net_internals/sourceentry.js (revision 46639)
+++ chrome/browser/resources/net_internals/sourceentry.js (working copy)
@@ -155,7 +155,16 @@
var e = this.getStartEntry_();
if (!e || e.extra_parameters == undefined)
return '';
- return JSON.stringify(e.extra_parameters); // The URL / hostname / whatever.
+
+ switch (e.source.type) {
+ case LogSourceType.URL_REQUEST:
+ case LogSourceType.SOCKET_STREAM:
+ return e.extra_parameters.url;
+ case LogSourceType.CONNECT_JOB:
+ return e.extra_parameters.group_name;
+ }
+
+ return '';
};
/**
« no previous file with comments | « chrome/browser/resources/net_internals/main.css ('k') | chrome/browser/resources/net_internals/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698