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..d9750721136d26907e3231b16e9edbcae77ea5e0 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_ms) { |
+ const base::TimeDelta duration = base::TimeDelta::FromMilliseconds(duration_ms); |
bartfab (slow)
2013/12/03 19:46:04
Nit: This line is more than 80 characters long now
binjin
2013/12/04 10:47:03
Done.
|
+ FOR_EACH_OBSERVER(LogoutButtonObserver, |
+ logout_button_observers_, |
+ OnLogoutDialogDurationChanged(duration)); |
+} |
+ |
void SystemTrayNotifier::NotifyLocaleChanged( |
LocaleObserver::Delegate* delegate, |
const std::string& cur_locale, |