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

Unified Diff: chromeos/login/auth/mock_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/mock_authenticator.h ('k') | chromeos/login/login_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/mock_authenticator.cc
diff --git a/chromeos/login/auth/mock_authenticator.cc b/chromeos/login/auth/mock_authenticator.cc
index 0665156f316c7f2e2fa53624b3dc5c1e25521f3f..fdd942911a4ac150e125fac185dc2e87c332de57 100644
--- a/chromeos/login/auth/mock_authenticator.cc
+++ b/chromeos/login/auth/mock_authenticator.cc
@@ -50,12 +50,6 @@ void MockAuthenticator::LoginAsSupervisedUser(const UserContext& user_context) {
consumer_->OnAuthSuccess(new_user_context);
}
-void MockAuthenticator::LoginRetailMode() {
- UserContext user_context("demo-mode");
- user_context.SetUserIDHash("demo-mode");
- consumer_->OnRetailModeAuthSuccess(user_context);
-}
-
void MockAuthenticator::LoginOffTheRecord() {
consumer_->OnOffTheRecordAuthSuccess();
}
@@ -73,12 +67,6 @@ void MockAuthenticator::LoginAsKioskAccount(const std::string& app_user_id,
consumer_->OnAuthSuccess(user_context);
}
-void MockAuthenticator::OnRetailModeAuthSuccess() {
- UserContext user_context(expected_user_context_.GetUserID());
- user_context.SetUserIDHash(expected_user_context_.GetUserID());
- consumer_->OnRetailModeAuthSuccess(user_context);
-}
-
void MockAuthenticator::OnAuthSuccess() {
// If we want to be more like the real thing, we could save the user ID
// in AuthenticateToLogin, but there's not much of a point.
« no previous file with comments | « chromeos/login/auth/mock_authenticator.h ('k') | chromeos/login/login_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698