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

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: minor fixes; use scoped_ptr; fix timer Created 7 years, 1 month 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..e0734bcd0676fa098c5f0ec518891d5dfdf3e1cf 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"
#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(int duration) {
+ base::TimeDelta duration_ = base::TimeDelta::FromMilliseconds(duration);
bartfab (slow) 2013/11/20 18:00:44 Nit 1: const Nit 2: The _ at the end is used for m
+ 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