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