summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 19:17:32 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 19:17:32 +0000
commitfce44c1937c994e3b05a26a6d93331f804ac7d15 (patch)
tree00f009d419190f657ad928cec76f7a3f1feeb3c4 /chrome_frame
parent7e1df2f66eee586d5800c9e56c6b434be5915dab (diff)
downloadchromium_src-fce44c1937c994e3b05a26a6d93331f804ac7d15.zip
chromium_src-fce44c1937c994e3b05a26a6d93331f804ac7d15.tar.gz
chromium_src-fce44c1937c994e3b05a26a6d93331f804ac7d15.tar.bz2
Initialize StatisticsRecorder in Child Process to hold
all histograms in child processes. Made StatisticsRecorder a leaky lazy singleton. R=jar@chromium.org, jam@chromium.org BUG=114013 TEST=renderer histograms should still work. Review URL: https://chromiumcodereview.appspot.com/10779040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/metrics_service.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome_frame/metrics_service.cc b/chrome_frame/metrics_service.cc
index 2a5e8b1..73c93b2 100644
--- a/chrome_frame/metrics_service.cc
+++ b/chrome_frame/metrics_service.cc
@@ -85,10 +85,6 @@ std::string MetricsService::client_id_;
base::Lock MetricsService::metrics_service_lock_;
-// Initialize histogram statistics gathering system.
-base::LazyInstance<base::StatisticsRecorder>
- g_statistics_recorder_ = LAZY_INSTANCE_INITIALIZER;
-
// This class provides functionality to upload the ChromeFrame UMA data to the
// server. An instance of this class is created whenever we have data to be
// uploaded to the server.
@@ -271,8 +267,7 @@ void MetricsService::InitializeMetricsState() {
session_id_ = CrashMetricsReporter::GetInstance()->IncrementMetric(
CrashMetricsReporter::SESSION_ID);
- // Ensure that an instance of the StatisticsRecorder object is created.
- g_statistics_recorder_.Get();
+ base::StatisticsRecorder::Initialize();
CrashMetricsReporter::GetInstance()->set_active(true);
}