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

Unified Diff: metrics_daemon.h

Issue 3233004: remove TimeToDrop support (Closed) Base URL: ssh://git@chromiumos-git//metrics.git
Patch Set: Created 10 years, 4 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 | « no previous file | metrics_daemon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: metrics_daemon.h
diff --git a/metrics_daemon.h b/metrics_daemon.h
index d400bf0f0e602baac79e28bfb8be15d5210a59ba..5f2e7868a9aed95793ea023f1863f2503326ccde 100644
--- a/metrics_daemon.h
+++ b/metrics_daemon.h
@@ -42,13 +42,10 @@ class MetricsDaemon {
FRIEND_TEST(MetricsDaemonTest, ComputeEpochNoLast);
FRIEND_TEST(MetricsDaemonTest, GetHistogramPath);
FRIEND_TEST(MetricsDaemonTest, IsNewEpoch);
- FRIEND_TEST(MetricsDaemonTest, LookupNetworkState);
FRIEND_TEST(MetricsDaemonTest, LookupPowerState);
FRIEND_TEST(MetricsDaemonTest, LookupScreenSaverState);
FRIEND_TEST(MetricsDaemonTest, LookupSessionState);
FRIEND_TEST(MetricsDaemonTest, MessageFilter);
- FRIEND_TEST(MetricsDaemonTest, NetStateChangedSimpleDrop);
- FRIEND_TEST(MetricsDaemonTest, NetStateChangedSuspend);
FRIEND_TEST(MetricsDaemonTest, PowerStateChanged);
FRIEND_TEST(MetricsDaemonTest, ProcessKernelCrash);
FRIEND_TEST(MetricsDaemonTest, ProcessUncleanShutdown);
@@ -64,14 +61,6 @@ class MetricsDaemon {
FRIEND_TEST(MetricsDaemonTest, SetUserActiveState);
FRIEND_TEST(MetricsDaemonTest, SetUserActiveStateTimeJump);
- // The network states (see network_states.h).
- enum NetworkState {
- kUnknownNetworkState = -1, // Initial/unknown network state.
-#define STATE(name, capname) kNetworkState ## capname,
-#include "network_states.h"
- kNumberNetworkStates
- };
-
// The power states (see power_states.h).
enum PowerState {
kUnknownPowerState = -1, // Initial/unknown power state.
@@ -116,10 +105,6 @@ class MetricsDaemon {
static const char kMetricKernelCrashesWeeklyName[];
static const char kMetricKernelCrashIntervalName[];
static const char kMetricsPath[];
- static const int kMetricTimeToNetworkDropBuckets;
- static const int kMetricTimeToNetworkDropMax;
- static const int kMetricTimeToNetworkDropMin;
- static const char kMetricTimeToNetworkDropName[];
static const char kMetricUncleanShutdownIntervalName[];
static const char kMetricUncleanShutdownsDailyName[];
static const char kMetricUncleanShutdownsWeeklyName[];
@@ -130,9 +115,6 @@ class MetricsDaemon {
// D-Bus message match strings.
static const char* kDBusMatches_[];
- // Array of network states.
- static const char* kNetworkStates_[kNumberNetworkStates];
-
// Array of power states.
static const char* kPowerStates_[kNumberPowerStates];
@@ -161,12 +143,6 @@ class MetricsDaemon {
DBusMessage* message,
void* user_data);
- // Processes network state change.
- void NetStateChanged(const char* state_name, base::TimeTicks ticks);
-
- // Given the state name, returns the state id.
- NetworkState LookupNetworkState(const char* state_name);
-
// Processes power state change.
void PowerStateChanged(const char* state_name, base::Time now);
@@ -247,9 +223,6 @@ class MetricsDaemon {
// The metrics library handle.
MetricsLibraryInterface* metrics_lib_;
- // Current network state.
- NetworkState network_state_;
-
// Timestamps last network state update. This timestamp is used to
// sample the time from the network going online to going offline so
// TimeTicks ensures a monotonically increasing TimeDelta.
« no previous file with comments | « no previous file | metrics_daemon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698