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

Unified Diff: content/browser/renderer_host/buffered_resource_handler.cc

Issue 6825056: Merge 78809 - Removed static variable for histograms to avoid race withhistogram initialization a... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/696/src/
Patch Set: Created 9 years, 8 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/net/url_info.cc ('k') | net/base/mime_sniffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/buffered_resource_handler.cc
===================================================================
--- content/browser/renderer_host/buffered_resource_handler.cc (revision 81175)
+++ content/browser/renderer_host/buffered_resource_handler.cc (working copy)
@@ -29,18 +29,18 @@
void RecordSnifferMetrics(bool sniffing_blocked,
bool we_would_like_to_sniff,
const std::string& mime_type) {
- static scoped_refptr<base::Histogram> nosniff_usage =
+ scoped_refptr<base::Histogram> nosniff_usage =
base::BooleanHistogram::FactoryGet(
"nosniff.usage", base::Histogram::kUmaTargetedHistogramFlag);
nosniff_usage->AddBoolean(sniffing_blocked);
if (sniffing_blocked) {
- static scoped_refptr<base::Histogram> nosniff_otherwise =
+ scoped_refptr<base::Histogram> nosniff_otherwise =
base::BooleanHistogram::FactoryGet(
"nosniff.otherwise", base::Histogram::kUmaTargetedHistogramFlag);
nosniff_otherwise->AddBoolean(we_would_like_to_sniff);
- static scoped_refptr<base::Histogram> nosniff_empty_mime_type =
+ scoped_refptr<base::Histogram> nosniff_empty_mime_type =
base::BooleanHistogram::FactoryGet(
"nosniff.empty_mime_type",
base::Histogram::kUmaTargetedHistogramFlag);
« no previous file with comments | « chrome/browser/net/url_info.cc ('k') | net/base/mime_sniffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698