summaryrefslogtreecommitdiffstats
path: root/components/metrics.gypi
diff options
context:
space:
mode:
authorbsimonnet@chromium.org <bsimonnet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-19 05:05:01 +0000
committerbsimonnet@chromium.org <bsimonnet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-19 05:05:01 +0000
commit6e9b5e203cf4f5419ccf21d801f354c668f16837 (patch)
tree9c3cee77528e3cd78097f0767c92e2a92c473fd3 /components/metrics.gypi
parent8f6bc9ec04fdbf168225b5e39da5a389b3b071b5 (diff)
downloadchromium_src-6e9b5e203cf4f5419ccf21d801f354c668f16837.zip
chromium_src-6e9b5e203cf4f5419ccf21d801f354c668f16837.tar.gz
chromium_src-6e9b5e203cf4f5419ccf21d801f354c668f16837.tar.bz2
Create a histogram serialization mechanism in base
We are removing the dependency of ChromeOS on Chrome to send metrics. If Chrome is not install on a system, we will provide a simple service that will upload the metrics. This module will need to read the same logs and use the same parsing mechanism as Chrome does now. The common serialization code will be kept in base to make it accessible to both Chrome and ChromeOS. The code in chrome/browser/chromeos/ will be migrated to use this in an other CL. BUG=chromium:358371 TEST=unittest included Review URL: https://codereview.chromium.org/227873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/metrics.gypi')
-rw-r--r--components/metrics.gypi26
1 files changed, 26 insertions, 0 deletions
diff --git a/components/metrics.gypi b/components/metrics.gypi
index 5c9b1f9..354d5f5 100644
--- a/components/metrics.gypi
+++ b/components/metrics.gypi
@@ -26,6 +26,13 @@
'metrics/persisted_logs.cc',
'metrics/persisted_logs.h',
],
+ 'conditions': [
+ ['chromeos==1', {
+ 'dependencies': [
+ 'metrics_chromeos',
+ ],
+ }],
+ ],
},
{
# Protobuf compiler / generator for UMA (User Metrics Analysis).
@@ -48,4 +55,23 @@
'includes': [ '../build/protoc.gypi' ],
},
],
+ 'conditions': [
+ ['chromeos==1', {
+ 'targets': [
+ {
+ 'target_name': 'metrics_chromeos',
+ 'type': 'static_library',
+ 'sources': [
+ 'metrics/chromeos/serialization_utils.cc',
+ 'metrics/chromeos/serialization_utils.h',
+ 'metrics/chromeos/metric_sample.cc',
+ 'metrics/chromeos/metric_sample.h',
+ ],
+ 'dependencies': [
+ '../base/base.gyp:base',
+ ],
+ },
+ ],
+ }],
+ ],
}