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

Unified Diff: ash/system/session/tray_session_length_limit.h

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: Created 3 years, 6 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
Index: ash/system/session/tray_session_length_limit.h
diff --git a/ash/system/session/tray_session_length_limit.h b/ash/system/session/tray_session_length_limit.h
index 9f16ade9ea54b56330337dbfd9db26622f68446c..23c5ff8dcab449a7f179c2f0415503b37393701c 100644
--- a/ash/system/session/tray_session_length_limit.h
+++ b/ash/system/session/tray_session_length_limit.h
@@ -7,7 +7,7 @@
#include <memory>
-#include "ash/system/session/session_length_limit_observer.h"
+#include "ash/session/session_observer.h"
#include "ash/system/tray/system_tray_item.h"
#include "base/macros.h"
#include "base/strings/string16.h"
@@ -23,7 +23,7 @@ class LabelTrayView;
// Adds a countdown timer to the system tray if the session length is limited.
class ASH_EXPORT TraySessionLengthLimit : public SystemTrayItem,
- public SessionLengthLimitObserver {
+ public SessionObserver {
public:
enum LimitState { LIMIT_NONE, LIMIT_SET, LIMIT_EXPIRING_SOON };
@@ -34,8 +34,7 @@ class ASH_EXPORT TraySessionLengthLimit : public SystemTrayItem,
views::View* CreateDefaultView(LoginStatus status) override;
void OnDefaultViewDestroyed() override;
- // SessionLengthLimitObserver:
- void OnSessionStartTimeChanged() override;
+ // SessionObserver:
void OnSessionLengthLimitChanged() override;
private:
@@ -57,8 +56,6 @@ class ASH_EXPORT TraySessionLengthLimit : public SystemTrayItem,
base::string16 ComposeNotificationMessage() const;
base::string16 ComposeTrayBubbleMessage() const;
- base::TimeTicks session_start_time_;
- base::TimeDelta time_limit_;
base::TimeDelta remaining_session_time_;
LimitState limit_state_; // Current state.

Powered by Google App Engine
This is Rietveld 408576698