| 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/session/tray_session_length_limit.h" | 5 #include "ash/system/session/tray_session_length_limit.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "ash/resources/grit/ash_resources.h" | |
| 12 #include "ash/resources/vector_icons/vector_icons.h" | 11 #include "ash/resources/vector_icons/vector_icons.h" |
| 13 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 14 #include "ash/strings/grit/ash_strings.h" | 13 #include "ash/strings/grit/ash_strings.h" |
| 15 #include "ash/system/system_notifier.h" | 14 #include "ash/system/system_notifier.h" |
| 16 #include "ash/system/tray/label_tray_view.h" | 15 #include "ash/system/tray/label_tray_view.h" |
| 17 #include "ash/system/tray/system_tray.h" | 16 #include "ash/system/tray/system_tray.h" |
| 18 #include "ash/system/tray/system_tray_delegate.h" | 17 #include "ash/system/tray/system_tray_delegate.h" |
| 19 #include "ash/system/tray/system_tray_notifier.h" | 18 #include "ash/system/tray/system_tray_notifier.h" |
| 20 #include "ash/system/tray/tray_constants.h" | 19 #include "ash/system/tray/tray_constants.h" |
| 21 #include "base/logging.h" | 20 #include "base/logging.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 184 |
| 186 base::string16 TraySessionLengthLimit::ComposeTrayBubbleMessage() const { | 185 base::string16 TraySessionLengthLimit::ComposeTrayBubbleMessage() const { |
| 187 return l10n_util::GetStringFUTF16( | 186 return l10n_util::GetStringFUTF16( |
| 188 IDS_ASH_STATUS_TRAY_BUBBLE_SESSION_LENGTH_LIMIT, | 187 IDS_ASH_STATUS_TRAY_BUBBLE_SESSION_LENGTH_LIMIT, |
| 189 ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION, | 188 ui::TimeFormat::Detailed(ui::TimeFormat::FORMAT_DURATION, |
| 190 ui::TimeFormat::LENGTH_LONG, 10, | 189 ui::TimeFormat::LENGTH_LONG, 10, |
| 191 remaining_session_time_)); | 190 remaining_session_time_)); |
| 192 } | 191 } |
| 193 | 192 |
| 194 } // namespace ash | 193 } // namespace ash |
| OLD | NEW |