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

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

Issue 2519823006: Chromad: Add authentication flow (Closed)
Patch Set: Created 4 years, 1 month 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: chromeos/login/auth/cryptohome_authenticator.cc
diff --git a/chromeos/login/auth/cryptohome_authenticator.cc b/chromeos/login/auth/cryptohome_authenticator.cc
index 9fc700af4038cee33c1d0e7578114fc20369068c..e93d97f00fab69b831a18e2630648a806a1f758a 100644
--- a/chromeos/login/auth/cryptohome_authenticator.cc
+++ b/chromeos/login/auth/cryptohome_authenticator.cc
@@ -501,7 +501,8 @@ void CryptohomeAuthenticator::AuthenticateToLogin(
void CryptohomeAuthenticator::CompleteLogin(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_AD);
authentication_context_ = context;
current_state_.reset(new AuthAttemptState(user_context,
true, // unlock

Powered by Google App Engine
This is Rietveld 408576698