summaryrefslogtreecommitdiffstats
path: root/chrome_frame/metrics_service.cc
diff options
context:
space:
mode:
authorgrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 02:31:31 +0000
committergrt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 02:31:31 +0000
commit66d4dab590c5c8bd66d2b62d7b5577b2ae1508d6 (patch)
tree64ca991e42c80e98cc2164f0a40c5590a0a0fbda /chrome_frame/metrics_service.cc
parentd585ea3a3f021131a90ca37fffdfd0f24543c6be (diff)
downloadchromium_src-66d4dab590c5c8bd66d2b62d7b5577b2ae1508d6.zip
chromium_src-66d4dab590c5c8bd66d2b62d7b5577b2ae1508d6.tar.gz
chromium_src-66d4dab590c5c8bd66d2b62d7b5577b2ae1508d6.tar.bz2
Fix stats collection in npchrome_frame.dll.
BUG=98449 TEST=set usagestats=DWORD1 in GCF's ClientState key, run GCF, use sawbuck to watch for the METRICS LOG message and confirm that it's not just an empty <log .../> element. Review URL: http://codereview.chromium.org/8071008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/metrics_service.cc')
-rw-r--r--chrome_frame/metrics_service.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome_frame/metrics_service.cc b/chrome_frame/metrics_service.cc
index fa1a5a7..ee7d393 100644
--- a/chrome_frame/metrics_service.cc
+++ b/chrome_frame/metrics_service.cc
@@ -81,6 +81,10 @@ base::LazyInstance<base::ThreadLocalPointer<MetricsService> >
base::Lock MetricsService::metrics_service_lock_;
+// Initialize histogram statistics gathering system.
+base::LazyInstance<base::StatisticsRecorder>
+ g_statistics_recorder_(base::LINKER_INITIALIZED);
+
// 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.
@@ -267,6 +271,7 @@ void MetricsService::InitializeMetricsState() {
CrashMetricsReporter::SESSION_ID);
// Ensure that an instance of the StatisticsRecorder object is created.
+ g_statistics_recorder_.Get();
CrashMetricsReporter::GetInstance()->set_active(true);
}