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

Unified Diff: components/user_manager/user_manager_base.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/user_manager/user_manager_base.cc
diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
index abd329c43327cf3e21c76f98af9de767c9d827e8..0f0fe26c01b97248c309ed1863c45eef2a44bcec 100644
--- a/components/user_manager/user_manager_base.cc
+++ b/components/user_manager/user_manager_base.cc
@@ -181,8 +181,6 @@ void UserManagerBase::UserLoggedIn(const std::string& user_id,
if (user_id == chromeos::login::kGuestUserName) {
GuestUserLoggedIn();
- } else if (user_id == chromeos::login::kRetailModeUserName) {
- RetailModeUserLoggedIn();
} else if (IsKioskApp(user_id)) {
KioskAppLoggedIn(user_id);
} else if (IsDemoApp(user_id)) {
@@ -556,11 +554,6 @@ bool UserManagerBase::IsLoggedInAsRegularUser() const {
return IsUserLoggedIn() && active_user_->GetType() == USER_TYPE_REGULAR;
}
-bool UserManagerBase::IsLoggedInAsDemoUser() const {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
- return IsUserLoggedIn() && active_user_->GetType() == USER_TYPE_RETAIL_MODE;
-}
-
bool UserManagerBase::IsLoggedInAsPublicAccount() const {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
return IsUserLoggedIn() &&
@@ -595,10 +588,9 @@ bool UserManagerBase::IsSessionStarted() const {
bool UserManagerBase::IsUserNonCryptohomeDataEphemeral(
const std::string& user_id) const {
- // Data belonging to the guest, retail mode and stub users is always
+ // Data belonging to the guest and stub users is always
bartfab (slow) 2014/10/15 09:52:21 Nit: The entire comment fits on one line now.
rkc 2014/11/20 21:06:34 Done.
// ephemeral.
if (user_id == chromeos::login::kGuestUserName ||
- user_id == chromeos::login::kRetailModeUserName ||
user_id == chromeos::login::kStubUser) {
return true;
}
@@ -973,8 +965,6 @@ void UserManagerBase::UpdateLoginState() {
login_user_type = chromeos::LoginState::LOGGED_IN_USER_OWNER;
else if (active_user_->GetType() == USER_TYPE_GUEST)
login_user_type = chromeos::LoginState::LOGGED_IN_USER_GUEST;
- else if (active_user_->GetType() == USER_TYPE_RETAIL_MODE)
- login_user_type = chromeos::LoginState::LOGGED_IN_USER_RETAIL_MODE;
else if (active_user_->GetType() == USER_TYPE_PUBLIC_ACCOUNT)
login_user_type = chromeos::LoginState::LOGGED_IN_USER_PUBLIC_ACCOUNT;
else if (active_user_->GetType() == USER_TYPE_SUPERVISED)

Powered by Google App Engine
This is Rietveld 408576698