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

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

Issue 40053002: Implements the dialog view for logout button tray in public sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhence tests; simplify code; fix win build(hope so) Created 7 years 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/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index e2035ad357feac1cf666d476d936a5477be47190..49d8e1f432c3d9c63ee4d93c60f97678320572cb 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "ash/system/tray/system_tray_notifier.h"
+#include "base/time/time.h"
bartfab (slow) 2013/12/10 12:41:16 Nit 1: This is #included by the header file alread
binjin 2013/12/12 13:56:55 Done.
#if defined(OS_CHROMEOS)
#include "ash/system/chromeos/network/network_state_notifier.h"
@@ -232,6 +233,13 @@ void SystemTrayNotifier::NotifyShowLoginButtonChanged(bool show_login_button) {
OnShowLogoutButtonInTrayChanged(show_login_button));
}
+void SystemTrayNotifier::NotifyLogoutDialogDurationChanged(
+ base::TimeDelta duration) {
+ FOR_EACH_OBSERVER(LogoutButtonObserver,
+ logout_button_observers_,
+ OnLogoutDialogDurationChanged(duration));
+}
+
void SystemTrayNotifier::NotifyLocaleChanged(
LocaleObserver::Delegate* delegate,
const std::string& cur_locale,

Powered by Google App Engine
This is Rietveld 408576698