| Index: chrome/browser/chromeos/system/ash_system_tray_delegate.cc
|
| diff --git a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
|
| index 5a49a4dadfd9a04de98a879194be14a14295badd..bd0613233cb5a92e4fa86f4f9504a405630a2a88 100644
|
| --- a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
|
| +++ b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
|
| @@ -909,6 +909,10 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
|
| base::Bind(&SystemTrayDelegate::UpdateShowLogoutButtonInTray,
|
| base::Unretained(this)));
|
| user_pref_registrar_->Add(
|
| + prefs::kLogoutDialogDurationMs,
|
| + base::Bind(&SystemTrayDelegate::UpdateLogoutDialogDuration,
|
| + base::Unretained(this)));
|
| + user_pref_registrar_->Add(
|
| prefs::kLargeCursorEnabled,
|
| base::Bind(&SystemTrayDelegate::OnAccessibilityModeChanged,
|
| base::Unretained(this),
|
| @@ -930,6 +934,7 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
|
|
|
| UpdateClockType();
|
| UpdateShowLogoutButtonInTray();
|
| + UpdateLogoutDialogDuration();
|
| UpdatePerformanceTracing();
|
| search_key_mapped_to_ =
|
| profile->GetPrefs()->GetInteger(prefs::kLanguageRemapSearchKeyTo);
|
| @@ -1001,6 +1006,13 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
|
| prefs::kShowLogoutButtonInTray));
|
| }
|
|
|
| + void UpdateLogoutDialogDuration() {
|
| + const int duration_ms = user_pref_registrar_->prefs()->GetInteger(
|
| + prefs::kLogoutDialogDurationMs);
|
| + GetSystemTrayNotifier()->NotifyLogoutDialogDurationChanged(
|
| + base::TimeDelta::FromMilliseconds(duration_ms));
|
| + }
|
| +
|
| void UpdateSessionStartTime() {
|
| const PrefService* local_state = local_state_registrar_->prefs();
|
| if (local_state->HasPrefPath(prefs::kSessionStartTime)) {
|
|
|