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

Unified Diff: metrics_daemon.h

Issue 2698002: Update metrics daemon to use new power manager signals for locking (4 of 7). (Closed) Base URL: ssh://git@chromiumos-git/metrics.git
Patch Set: Update to master Created 10 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 | « 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 835aca36a168a3026f831d4d015efa52ee326b6e..ea4771fc7bf643ab59cbe059b5ac8b55c4cac574 100644
--- a/metrics_daemon.h
+++ b/metrics_daemon.h
@@ -20,7 +20,6 @@ class MetricsDaemon {
: daily_use_record_file_(NULL),
network_state_(kUnknownNetworkState),
power_state_(kUnknownPowerState),
- screensaver_state_(kUnknownScreenSaverState),
session_state_(kUnknownSessionState),
user_active_(false),
daily_use_day_last_(0),
@@ -72,14 +71,6 @@ class MetricsDaemon {
kNumberPowerStates
};
- // The screen-saver states (see screensaver_states.h).
- enum ScreenSaverState {
- kUnknownScreenSaverState = -1, // Initial/unknown screen-saver state.
-#define STATE(name, capname) kScreenSaverState ## capname,
-#include "screensaver_states.h"
- kNumberScreenSaverStates
- };
-
// The user session states (see session_states.h).
enum SessionState {
kUnknownSessionState = -1, // Initial/unknown user session state.
@@ -115,9 +106,6 @@ class MetricsDaemon {
// Array of power states.
static const char* kPowerStates_[kNumberPowerStates];
- // Array of screen-saver states.
- static const char* kScreenSaverStates_[kNumberScreenSaverStates];
-
// Array of user session states.
static const char* kSessionStates_[kNumberSessionStates];
@@ -141,12 +129,6 @@ class MetricsDaemon {
// Given the state name, returns the state id.
PowerState LookupPowerState(const char* state_name);
- // Processes screen-saver state change.
- void ScreenSaverStateChanged(const char* state_name, base::Time now);
-
- // Given the state name, returns the state id.
- ScreenSaverState LookupScreenSaverState(const char* state_name);
-
// Processes user session state change.
void SessionStateChanged(const char* state_name, base::Time now);
@@ -215,9 +197,6 @@ class MetricsDaemon {
// Current power state.
PowerState power_state_;
- // Current screen-saver state.
- ScreenSaverState screensaver_state_;
-
// Current user session state.
SessionState session_state_;
« 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