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

Unified Diff: chromeos/login/auth/cryptohome_authenticator.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « chromeos/login/auth/cryptohome_authenticator.h ('k') | chromeos/login/auth/login_performer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/cryptohome_authenticator.cc
diff --git a/chromeos/login/auth/cryptohome_authenticator.cc b/chromeos/login/auth/cryptohome_authenticator.cc
index 970f6f1d5a3c7376691d8f4506b64360f9b04ac3..c9ca10091a8bd32f8b3e55090c2aa050dfee8859 100644
--- a/chromeos/login/auth/cryptohome_authenticator.cc
+++ b/chromeos/login/auth/cryptohome_authenticator.cc
@@ -457,22 +457,6 @@ void CryptohomeAuthenticator::LoginAsSupervisedUser(
false /* create_if_nonexistent */);
}
-void CryptohomeAuthenticator::LoginRetailMode() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
- // Note: |kRetailModeUserEMail| is used in other places to identify a retail
- // mode session.
- current_state_.reset(
- new AuthAttemptState(UserContext(chromeos::login::kRetailModeUserName),
- user_manager::USER_TYPE_RETAIL_MODE,
- false, // unlock
- false, // online_complete
- false)); // user_is_new
- remove_user_data_on_failure_ = false;
- ephemeral_mount_attempted_ = true;
- MountGuestAndGetHash(current_state_.get(),
- scoped_refptr<CryptohomeAuthenticator>(this));
-}
-
void CryptohomeAuthenticator::LoginOffTheRecord() {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
current_state_.reset(
@@ -529,14 +513,6 @@ void CryptohomeAuthenticator::LoginAsKioskAccount(
}
}
-void CryptohomeAuthenticator::OnRetailModeAuthSuccess() {
- DCHECK(task_runner_->RunsTasksOnCurrentThread());
- VLOG(1) << "Retail mode login success";
- chromeos::LoginEventRecorder::Get()->RecordAuthenticationSuccess();
- if (consumer_)
- consumer_->OnRetailModeAuthSuccess(current_state_->user_context);
-}
-
void CryptohomeAuthenticator::OnAuthSuccess() {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
VLOG(1) << "Login success";
@@ -730,13 +706,6 @@ void CryptohomeAuthenticator::Resolve() {
task_runner_->PostTask(
FROM_HERE, base::Bind(&CryptohomeAuthenticator::OnAuthSuccess, this));
break;
- case DEMO_LOGIN:
- VLOG(2) << "Retail mode login";
- current_state_->user_context.SetIsUsingOAuth(false);
- task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&CryptohomeAuthenticator::OnRetailModeAuthSuccess, this));
- break;
case GUEST_LOGIN:
task_runner_->PostTask(
FROM_HERE,
@@ -884,8 +853,6 @@ CryptohomeAuthenticator::ResolveCryptohomeSuccessState() {
if (current_state_->user_type == user_manager::USER_TYPE_GUEST)
return GUEST_LOGIN;
- if (current_state_->user_type == user_manager::USER_TYPE_RETAIL_MODE)
- return DEMO_LOGIN;
if (current_state_->user_type == user_manager::USER_TYPE_PUBLIC_ACCOUNT)
return PUBLIC_ACCOUNT_LOGIN;
if (current_state_->user_type == user_manager::USER_TYPE_KIOSK_APP)
« no previous file with comments | « chromeos/login/auth/cryptohome_authenticator.h ('k') | chromeos/login/auth/login_performer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698