diff options
author | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-29 21:32:19 +0000 |
---|---|---|
committer | keybuk@chromium.org <keybuk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-29 21:32:19 +0000 |
commit | 611ae29a72a8cb343679767f454fed6d0c71b771 (patch) | |
tree | 361b4488986388b400ad64e7491d72a48863f478 /chrome/browser/metrics/metrics_log.h | |
parent | cea0201e639979c0e7ca4f3a771f24621dba7ecc (diff) | |
download | chromium_src-611ae29a72a8cb343679767f454fed6d0c71b771.zip chromium_src-611ae29a72a8cb343679767f454fed6d0c71b771.tar.gz chromium_src-611ae29a72a8cb343679767f454fed6d0c71b771.tar.bz2 |
Bluetooth: gather usage metrics
Resubmit; this was reverted in 196993 due to a missing initialization in a unit test.
BUG=233820
TEST=chrome:///histograms
Review URL: https://codereview.chromium.org/14109028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/metrics_log.h')
-rw-r--r-- | chrome/browser/metrics/metrics_log.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_log.h b/chrome/browser/metrics/metrics_log.h index f5cf34e..2d102d0 100644 --- a/chrome/browser/metrics/metrics_log.h +++ b/chrome/browser/metrics/metrics_log.h @@ -30,6 +30,10 @@ namespace base { class DictionaryValue; } +namespace device { +class BluetoothAdapter; +} + namespace tracked_objects { struct ProcessDataSnapshot; } @@ -189,6 +193,14 @@ class MetricsLog : public MetricsLogBase { // This is a no-op if called on a non-Windows platform. void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); + // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() + // call. + void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter); + + // Writes info about paired Bluetooth devices on this system. + // This is a no-op if called on a non-Chrome OS platform. + void WriteBluetoothProto(metrics::SystemProfileProto::Hardware* hardware); + // Observes network state to provide values for SystemProfile::Network. MetricsNetworkObserver network_observer_; @@ -196,6 +208,9 @@ class MetricsLog : public MetricsLogBase { metrics::PerfProvider perf_provider_; #endif + // Bluetooth Adapter instance for collecting information about paired devices. + scoped_refptr<device::BluetoothAdapter> adapter_; + DISALLOW_COPY_AND_ASSIGN(MetricsLog); }; |