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

Unified Diff: ash/system/tray/default_system_tray_delegate.cc

Issue 2041233005: Moves ash::user::LoginStatus to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 6 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
Index: ash/system/tray/default_system_tray_delegate.cc
diff --git a/ash/system/tray/default_system_tray_delegate.cc b/ash/system/tray/default_system_tray_delegate.cc
index 2627e926d94c0e0cb57349101f2cba79949201ff..40429c44b806228a61cab66eeff5178d79f8d4f5 100644
--- a/ash/system/tray/default_system_tray_delegate.cc
+++ b/ash/system/tray/default_system_tray_delegate.cc
@@ -27,8 +27,8 @@ bool DefaultSystemTrayDelegate::GetTrayVisibilityOnStartup() {
return true;
}
-user::LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const {
- return user::LOGGED_IN_USER;
+LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const {
+ return LoginStatus::USER;
}
std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const {
@@ -38,7 +38,7 @@ std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const {
}
bool DefaultSystemTrayDelegate::IsUserSupervised() const {
- return GetUserLoginStatus() == ash::user::LOGGED_IN_SUPERVISED;
+ return GetUserLoginStatus() == LoginStatus::SUPERVISED;
}
void DefaultSystemTrayDelegate::GetSystemUpdateInfo(UpdateInfo* info) const {

Powered by Google App Engine
This is Rietveld 408576698