| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/tray/default_system_tray_delegate.h" | 5 #include "ash/system/tray/default_system_tray_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 | 10 |
| 11 DefaultSystemTrayDelegate::DefaultSystemTrayDelegate() {} | 11 DefaultSystemTrayDelegate::DefaultSystemTrayDelegate() {} |
| 12 | 12 |
| 13 DefaultSystemTrayDelegate::~DefaultSystemTrayDelegate() {} | 13 DefaultSystemTrayDelegate::~DefaultSystemTrayDelegate() {} |
| 14 | 14 |
| 15 LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const { | 15 LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const { |
| 16 return LoginStatus::USER; | 16 return LoginStatus::USER; |
| 17 } | 17 } |
| 18 | 18 |
| 19 std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const { | 19 std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const { |
| 20 if (!IsUserSupervised()) | 20 if (!IsUserSupervised()) |
| 21 return std::string(); | 21 return std::string(); |
| 22 return "manager@chrome.com"; | 22 return "manager@chrome.com"; |
| 23 } | 23 } |
| 24 | 24 |
| 25 bool DefaultSystemTrayDelegate::IsUserSupervised() const { | 25 bool DefaultSystemTrayDelegate::IsUserSupervised() const { |
| 26 return GetUserLoginStatus() == LoginStatus::SUPERVISED; | 26 return GetUserLoginStatus() == LoginStatus::SUPERVISED; |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool DefaultSystemTrayDelegate::ShouldShowSettings() const { | |
| 30 return true; | |
| 31 } | |
| 32 | |
| 33 bool DefaultSystemTrayDelegate::ShouldShowNotificationTray() const { | |
| 34 return true; | |
| 35 } | |
| 36 | |
| 37 } // namespace ash | 29 } // namespace ash |
| OLD | NEW |