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

Unified Diff: chrome_frame/metrics_service.cc

Issue 10779040: Initialize StatisticsRecorder in Child Process to hold (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: chrome_frame/metrics_service.cc
===================================================================
--- chrome_frame/metrics_service.cc (revision 147155)
+++ chrome_frame/metrics_service.cc (working copy)
@@ -85,10 +85,6 @@
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 @@
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);
}
« no previous file with comments | « chrome/browser/net/http_pipelining_compatibility_client_unittest.cc ('k') | content/browser/browser_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698