diff options
author | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 17:35:18 +0000 |
---|---|---|
committer | tsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 17:35:18 +0000 |
commit | be843e26b00f611d3bcf3b2652b8eccf95310346 (patch) | |
tree | a364e6cc8a143e6dfbcc047f35c13ebbddca4dae /base/metrics | |
parent | e01d28171595bd723e6fd9846a7783c037d882f1 (diff) | |
download | chromium_src-be843e26b00f611d3bcf3b2652b8eccf95310346.zip chromium_src-be843e26b00f611d3bcf3b2652b8eccf95310346.tar.gz chromium_src-be843e26b00f611d3bcf3b2652b8eccf95310346.tar.bz2 |
Apply CSP to chrome: and about: pages
Apply Content Security Policy to the chrome://credits page, and the other pages handled by browser_about_handler.cc while we're at it. Move inline JS out of several html files. Move top-level page generation to the about_handler.cc, with tracked_objects.cc/hisogram.cc generating markup fragments to be included. This keeps this files agnostic to CSP issues. Also fix an output encoding issue in the <title> of some pages.
Review URL: http://codereview.chromium.org/7215034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/histogram.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/base/metrics/histogram.cc b/base/metrics/histogram.cc index 2441c51..dbd7278 100644 --- a/base/metrics/histogram.cc +++ b/base/metrics/histogram.cc @@ -1064,13 +1064,6 @@ void StatisticsRecorder::WriteHTMLGraph(const std::string& query, std::string* output) { if (!IsActive()) return; - output->append("<html><head><title>About Histograms"); - if (!query.empty()) - output->append(" - " + query); - output->append("</title>" - // We'd like the following no-cache... but it doesn't work. - // "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">" - "</head><body>"); Histograms snapshot; GetSnapshot(query, &snapshot); @@ -1080,7 +1073,6 @@ void StatisticsRecorder::WriteHTMLGraph(const std::string& query, (*it)->WriteHTMLGraph(output); output->append("<br><hr><br>"); } - output->append("</body></html>"); } // static |