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

Unified Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 2701753004: Don't let creating Google accounts on the Active Directory devices. (Closed)
Patch Set: Update after review Created 3 years, 10 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 | « chrome/browser/chromeos/settings/install_attributes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
index d15de311a2a85e8c40d88ec512ad9dfc5d8d7ed4..43e51762b26c28385ff3a1fdc309b49bdd4e7954 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -1159,6 +1159,8 @@ void SigninScreenHandler::HandleAuthenticateUser(const AccountId& account_id,
UserContext user_context(account_id);
user_context.SetKey(Key(password));
user_context.SetIsUsingPin(authenticated_by_pin);
+ if (account_id.GetAccountType() == AccountType::ACTIVE_DIRECTORY)
+ user_context.SetUserType(user_manager::USER_TYPE_ACTIVE_DIRECTORY);
delegate_->Login(user_context, SigninSpecifics());
HidePinKeyboardIfNeeded(account_id);
« no previous file with comments | « chrome/browser/chromeos/settings/install_attributes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698