Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ash / test / test_system_tray_delegate.cc
index c4a45b9..60fb4b3 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "ash/session/session_state_delegate.h"
 #include "ash/shell.h"
+#include "ash/system/user/login_status.h"
 #include "base/message_loop/message_loop.h"
 #include "base/time/time.h"
 
@@ -69,6 +70,10 @@ user::LoginStatus TestSystemTrayDelegate::GetUserLoginStatus() const {
   return login_status_;
 }
 
+bool TestSystemTrayDelegate::IsUserSupervised() const {
+  return login_status_ == ash::user::LOGGED_IN_SUPERVISED;
+}
+
 bool TestSystemTrayDelegate::ShouldShowDisplayNotification() {
   return should_show_display_notification_;
 }