Index: ash/test/test_system_tray_delegate.cc |
diff --git a/ash/test/test_system_tray_delegate.cc b/ash/test/test_system_tray_delegate.cc |
index c4a45b9df7326a3844cf5723db8a3bbeb7f00711..7617096ffd8cd3e2f077b7dab14bb5c08316454b 100644 |
--- a/ash/test/test_system_tray_delegate.cc |
+++ b/ash/test/test_system_tray_delegate.cc |
@@ -11,6 +11,9 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/time/time.h" |
Denis Kuznetsov (DE-MUC)
2014/09/15 11:33:36
No need for empty line here.
|
+#include "components/user_manager/user.h" |
+#include "components/user_manager/user_manager.h" |
+ |
namespace ash { |
namespace test { |
@@ -69,6 +72,11 @@ user::LoginStatus TestSystemTrayDelegate::GetUserLoginStatus() const { |
return login_status_; |
} |
+bool TestSystemTrayDelegate::IsUserSupervised() const { |
+ user_manager::User* user = user_manager::UserManager::Get()->GetActiveUser(); |
+ return user && user->IsSupervised(); |
+} |
+ |
bool TestSystemTrayDelegate::ShouldShowDisplayNotification() { |
return should_show_display_notification_; |
} |