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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 393343002: Rename "managed (mode|user)" to "supervised user" (part 7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more alphabetize (and rebase again) Created 6 years, 5 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: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 3bf4c616bf30ec64bf60ce78cc709703b340e1e3..b0aa84a281eedd0db618792687cc644fd97a8122 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -407,8 +407,8 @@ ash::user::LoginStatus SystemTrayDelegateChromeOS::GetUserLoginStatus() const {
return ash::user::LOGGED_IN_RETAIL_MODE;
case LoginState::LOGGED_IN_USER_PUBLIC_ACCOUNT:
return ash::user::LOGGED_IN_PUBLIC;
- case LoginState::LOGGED_IN_USER_LOCALLY_MANAGED:
- return ash::user::LOGGED_IN_LOCALLY_MANAGED;
+ case LoginState::LOGGED_IN_USER_SUPERVISED:
+ return ash::user::LOGGED_IN_SUPERVISED;
case LoginState::LOGGED_IN_USER_KIOSK_APP:
return ash::user::LOGGED_IN_KIOSK_APP;
}
@@ -433,29 +433,28 @@ const base::string16 SystemTrayDelegateChromeOS::GetEnterpriseMessage() const {
base::UTF8ToUTF16(GetEnterpriseDomain()));
}
-const std::string SystemTrayDelegateChromeOS::GetLocallyManagedUserManager()
- const {
- if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED)
+const std::string SystemTrayDelegateChromeOS::GetSupervisedUserManager() const {
+ if (GetUserLoginStatus() != ash::user::LOGGED_IN_SUPERVISED)
return std::string();
return UserManager::Get()->GetSupervisedUserManager()->GetManagerDisplayEmail(
chromeos::UserManager::Get()->GetActiveUser()->email());
}
const base::string16
-SystemTrayDelegateChromeOS::GetLocallyManagedUserManagerName() const {
- if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED)
+SystemTrayDelegateChromeOS::GetSupervisedUserManagerName() const {
+ if (GetUserLoginStatus() != ash::user::LOGGED_IN_SUPERVISED)
return base::string16();
return UserManager::Get()->GetSupervisedUserManager()->GetManagerDisplayName(
chromeos::UserManager::Get()->GetActiveUser()->email());
}
-const base::string16 SystemTrayDelegateChromeOS::GetLocallyManagedUserMessage()
+const base::string16 SystemTrayDelegateChromeOS::GetSupervisedUserMessage()
const {
- if (GetUserLoginStatus() != ash::user::LOGGED_IN_LOCALLY_MANAGED)
+ if (GetUserLoginStatus() != ash::user::LOGGED_IN_SUPERVISED)
return base::string16();
return l10n_util::GetStringFUTF16(
IDS_USER_IS_LOCALLY_MANAGED_BY_NOTICE,
- base::UTF8ToUTF16(GetLocallyManagedUserManager()));
+ base::UTF8ToUTF16(GetSupervisedUserManager()));
}
bool SystemTrayDelegateChromeOS::SystemShouldUpgrade() const {
@@ -574,7 +573,7 @@ void SystemTrayDelegateChromeOS::ShowPublicAccountInfo() {
chrome::ShowPolicy(displayer.browser());
}
-void SystemTrayDelegateChromeOS::ShowLocallyManagedUserInfo() {
+void SystemTrayDelegateChromeOS::ShowSupervisedUserInfo() {
// TODO(antrim): find out what should we show in this case.
// http://crbug.com/229762
}
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | chrome/browser/ui/ash/system_tray_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698