OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/system/date/date_default_view.h" | 5 #include "ash/system/date/date_default_view.h" |
6 | 6 |
| 7 #include "ash/common/session/session_state_delegate.h" |
7 #include "ash/metrics/user_metrics_recorder.h" | 8 #include "ash/metrics/user_metrics_recorder.h" |
8 #include "ash/session/session_state_delegate.h" | |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/system/date/date_view.h" | 10 #include "ash/system/date/date_view.h" |
11 #include "ash/system/tray/special_popup_row.h" | 11 #include "ash/system/tray/special_popup_row.h" |
12 #include "ash/system/tray/system_tray_delegate.h" | 12 #include "ash/system/tray/system_tray_delegate.h" |
13 #include "ash/system/tray/tray_constants.h" | 13 #include "ash/system/tray/tray_constants.h" |
14 #include "ash/system/tray/tray_popup_header_button.h" | 14 #include "ash/system/tray/tray_popup_header_button.h" |
15 #include "ash/wm/lock_state_controller.h" | 15 #include "ash/wm/lock_state_controller.h" |
16 #include "base/i18n/rtl.h" | 16 #include "base/i18n/rtl.h" |
17 #include "grit/ash_resources.h" | 17 #include "grit/ash_resources.h" |
18 #include "grit/ash_strings.h" | 18 #include "grit/ash_strings.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void DateDefaultView::OnShutdownPolicyChanged(bool reboot_on_shutdown) { | 147 void DateDefaultView::OnShutdownPolicyChanged(bool reboot_on_shutdown) { |
148 if (!shutdown_button_) | 148 if (!shutdown_button_) |
149 return; | 149 return; |
150 | 150 |
151 shutdown_button_->SetTooltipText(l10n_util::GetStringUTF16( | 151 shutdown_button_->SetTooltipText(l10n_util::GetStringUTF16( |
152 reboot_on_shutdown ? IDS_ASH_STATUS_TRAY_REBOOT | 152 reboot_on_shutdown ? IDS_ASH_STATUS_TRAY_REBOOT |
153 : IDS_ASH_STATUS_TRAY_SHUTDOWN)); | 153 : IDS_ASH_STATUS_TRAY_SHUTDOWN)); |
154 } | 154 } |
155 | 155 |
156 } // namespace ash | 156 } // namespace ash |
OLD | NEW |