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/supervised/tray_supervised_user.h" | 5 #include "ash/system/supervised/tray_supervised_user.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/login_status.h" | 9 #include "ash/login_status.h" |
10 #include "ash/common/wm_shell.h" | |
11 #include "ash/resources/grit/ash_resources.h" | 10 #include "ash/resources/grit/ash_resources.h" |
12 #include "ash/system/system_notifier.h" | 11 #include "ash/system/system_notifier.h" |
13 #include "ash/system/tray/label_tray_view.h" | 12 #include "ash/system/tray/label_tray_view.h" |
14 #include "ash/system/tray/system_tray_delegate.h" | 13 #include "ash/system/tray/system_tray_delegate.h" |
| 14 #include "ash/wm_shell.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
18 #include "ui/message_center/message_center.h" | 18 #include "ui/message_center/message_center.h" |
19 #include "ui/message_center/notification.h" | 19 #include "ui/message_center/notification.h" |
20 #include "ui/message_center/notification_delegate.h" | 20 #include "ui/message_center/notification_delegate.h" |
21 | 21 |
22 using message_center::Notification; | 22 using message_center::Notification; |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Not intended to be used for non-supervised users. | 124 // Not intended to be used for non-supervised users. |
125 CHECK(delegate->IsUserSupervised()); | 125 CHECK(delegate->IsUserSupervised()); |
126 | 126 |
127 if (delegate->IsUserChild()) | 127 if (delegate->IsUserChild()) |
128 return IDR_AURA_UBER_TRAY_CHILD_USER; | 128 return IDR_AURA_UBER_TRAY_CHILD_USER; |
129 return IDR_AURA_UBER_TRAY_SUPERVISED_USER; | 129 return IDR_AURA_UBER_TRAY_SUPERVISED_USER; |
130 } | 130 } |
131 | 131 |
132 } // namespace ash | 132 } // namespace ash |
OLD | NEW |