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

Unified Diff: ash/system/tray/system_tray_notifier.cc

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: rebase 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
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index 6eb56b358688a8ac8509d9ee4a93e7a91af26720..661c9f63cb921d236e155c5b0837ca9b5d55cd96 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -15,7 +15,6 @@
#include "ash/system/screen_security/screen_share_observer.h"
#include "ash/system/session/last_window_closed_observer.h"
#include "ash/system/session/logout_button_observer.h"
-#include "ash/system/session/session_length_limit_observer.h"
#include "ash/system/status_area_focus_observer.h"
#include "ash/system/tray_tracing.h"
#include "ash/system/virtual_keyboard/virtual_keyboard_observer.h"
@@ -229,26 +228,6 @@ void SystemTrayNotifier::NotifyScreenShareStop() {
observer.OnScreenShareStop();
}
-void SystemTrayNotifier::AddSessionLengthLimitObserver(
- SessionLengthLimitObserver* observer) {
- session_length_limit_observers_.AddObserver(observer);
-}
-
-void SystemTrayNotifier::RemoveSessionLengthLimitObserver(
- SessionLengthLimitObserver* observer) {
- session_length_limit_observers_.RemoveObserver(observer);
-}
-
-void SystemTrayNotifier::NotifySessionStartTimeChanged() {
- for (auto& observer : session_length_limit_observers_)
- observer.OnSessionStartTimeChanged();
-}
-
-void SystemTrayNotifier::NotifySessionLengthLimitChanged() {
- for (auto& observer : session_length_limit_observers_)
- observer.OnSessionLengthLimitChanged();
-}
-
void SystemTrayNotifier::AddStatusAreaFocusObserver(
StatusAreaFocusObserver* observer) {
status_area_focus_observers_.AddObserver(observer);
« no previous file with comments | « ash/system/tray/system_tray_notifier.h ('k') | ash/test/test_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698