diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 22:53:44 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 22:53:44 +0000 |
commit | 9e92743fd8557ef43cd9041e32b86f0aed1f03dd (patch) | |
tree | 46f7ad77bb3d5f90ceb58ea0174574ce05a3dfeb /net/url_request | |
parent | 2237f5d79d68d3245f22bedad3f2a757707fdcd3 (diff) | |
download | chromium_src-9e92743fd8557ef43cd9041e32b86f0aed1f03dd.zip chromium_src-9e92743fd8557ef43cd9041e32b86f0aed1f03dd.tar.gz chromium_src-9e92743fd8557ef43cd9041e32b86f0aed1f03dd.tar.bz2 |
Minor aesthetic change to net-internals page:
* linkify the subsection's URL rather than just displaying the URL
* also changed the URL scheme of the text from about:net-internal to view-net-internal
BUG=http://crbug.com/14478
Review URL: http://codereview.chromium.org/196013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_view_net_internal_job.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/url_request/url_request_view_net_internal_job.cc b/net/url_request/url_request_view_net_internal_job.cc index a18d378..f91fa9a 100644 --- a/net/url_request/url_request_view_net_internal_job.cc +++ b/net/url_request/url_request_view_net_internal_job.cc @@ -53,13 +53,19 @@ class SubSection { // Outputs this subsection, and all of its children. void OutputRecursive(URLRequestContext* context, std::string* out) { if (!is_root()) { + std::string section_url = + std::string("view-net-internal:") + GetFullyQualifiedName(); + // Canonicalizing the URL escapes characters which cause problems in HTML. + section_url = GURL(section_url).spec(); + // Print the heading. out->append(StringPrintf("<div>" "<span class=subsection_title>%s</span> " - "<span class=subsection_name>(about:net-internal/%s)<span>" + "<span class=subsection_name>(<a href='%s'>%s</a>)<span>" "</div>", EscapeForHTML(title_).c_str(), - EscapeForHTML(GetFullyQualifiedName()).c_str())); + section_url.c_str(), + EscapeForHTML(section_url).c_str())); out->append("<div class=subsection_body>"); } |