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

Unified Diff: chrome/browser/metrics/metrics_log_chromeos.h

Issue 292433015: Refactor MetricsLogChromeOS to ChromeOSMetricsProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fixes Created 6 years, 7 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
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/metrics/metrics_log_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log_chromeos.h
diff --git a/chrome/browser/metrics/metrics_log_chromeos.h b/chrome/browser/metrics/metrics_log_chromeos.h
deleted file mode 100644
index 239bce6030a223d151bd2f1777cbb6d824f92d01..0000000000000000000000000000000000000000
--- a/chrome/browser/metrics/metrics_log_chromeos.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_METRICS_METRICS_LOG_CHROMEOS_H_
-#define CHROME_BROWSER_METRICS_METRICS_LOG_CHROMEOS_H_
-
-#include "chrome/browser/metrics/perf_provider_chromeos.h"
-
-namespace device {
-class BluetoothAdapter;
-}
-
-namespace metrics {
-class ChromeUserMetricsExtension;
-}
-
-class PrefService;
-
-// Performs ChromeOS specific metrics logging.
-class MetricsLogChromeOS {
- public:
- explicit MetricsLogChromeOS(metrics::ChromeUserMetricsExtension* uma_proto);
- virtual ~MetricsLogChromeOS();
-
- // Logs ChromeOS specific metrics which don't need to be updated immediately.
- void LogChromeOSMetrics();
-
- // Within the stability group, write ChromeOS specific attributes that need to
- // be updated asap and can't be delayed until the user decides to restart
- // chromium. Delaying these stats would bias metrics away from happy long
- // lived chromium processes (ones that don't crash, and keep on running).
- void WriteRealtimeStabilityAttributes(PrefService* pref);
-
- private:
- // Update the number of users logged into a multi-profile session.
- // If the number of users change while the log is open, the call invalidates
- // the user count value.
- void UpdateMultiProfileUserCount();
-
- // 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.
- virtual void WriteBluetoothProto();
-
- metrics::PerfProvider perf_provider_;
-
- // Bluetooth Adapter instance for collecting information about paired devices.
- scoped_refptr<device::BluetoothAdapter> adapter_;
- metrics::ChromeUserMetricsExtension* uma_proto_;
-
- DISALLOW_COPY_AND_ASSIGN(MetricsLogChromeOS);
-};
-
-#endif // CHROME_BROWSER_METRICS_METRICS_LOG_CHROMEOS_H_
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/metrics/metrics_log_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698