Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1923)

Unified Diff: ash/test/test_system_tray_delegate.cc

Issue 561713002: ash: Add checks for supervised users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Log changed. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/test_system_tray_delegate.h ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « ash/test/test_system_tray_delegate.h ('k') | chrome/browser/ui/ash/system_tray_delegate_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698