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

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

Issue 2835473002: Chromad: Allow offline login. (Closed)
Patch Set: Add TryAuthenticateUser call Created 3 years, 8 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
« no previous file with comments | « chromeos/login/auth/authpolicy_login_helper.cc ('k') | no next file » | 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 a4f98d23be13501898b09f071522baf656f68650..b60fc86bef256e1c7f4bc9286d74338dcc293122 100644
--- a/chromeos/login/auth/cryptohome_authenticator.cc
+++ b/chromeos/login/auth/cryptohome_authenticator.cc
@@ -492,7 +492,9 @@ CryptohomeAuthenticator::CryptohomeAuthenticator(
void CryptohomeAuthenticator::AuthenticateToLogin(
content::BrowserContext* context,
const UserContext& user_context) {
- DCHECK_EQ(user_manager::USER_TYPE_REGULAR, user_context.GetUserType());
+ DCHECK(user_context.GetUserType() == user_manager::USER_TYPE_REGULAR ||
+ user_context.GetUserType() ==
+ user_manager::USER_TYPE_ACTIVE_DIRECTORY);
authentication_context_ = context;
current_state_.reset(new AuthAttemptState(user_context,
false, // unlock
« no previous file with comments | « chromeos/login/auth/authpolicy_login_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698