Chromium Code Reviews| Index: ash/system/date/tray_date.cc |
| diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc |
| index fb8d82954cf26eb239c0ef60f0fec25f251a0ebe..17d1f7029a2bcf53fc0e1bb1bfb84dd4e72942ca 100644 |
| --- a/ash/system/date/tray_date.cc |
| +++ b/ash/system/date/tray_date.cc |
| @@ -77,6 +77,9 @@ void TrayDate::UpdateAfterLoginStatusChange(user::LoginStatus status) { |
| } |
| void TrayDate::OnDateFormatChanged() { |
| + if (!date_tray_.get()) |
| + return; |
| + |
| date_tray_->UpdateTimeFormat(); |
| } |