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

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

Issue 16278003: Made possible to lock and unlock with several logged in users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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/login/webui_screen_locker.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 2bcf0948c597424cebf9020ca3b64a16889ef513..61cbe488d4f9f280f49bdb14f55d668b7c837eab 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -1219,7 +1219,6 @@ void SigninScreenHandler::FillUserDictionary(User* user,
user->GetType() == User::USER_TYPE_PUBLIC_ACCOUNT;
bool is_locally_managed_user =
user->GetType() == User::USER_TYPE_LOCALLY_MANAGED;
- bool signed_in = user == UserManager::Get()->GetLoggedInUser();
user_dict->SetString(kKeyUsername, email);
user_dict->SetString(kKeyEmailAddress, user->display_email());
@@ -1227,7 +1226,7 @@ void SigninScreenHandler::FillUserDictionary(User* user,
user_dict->SetBoolean(kKeyPublicAccount, is_public_account);
user_dict->SetBoolean(kKeyLocallyManagedUser, is_locally_managed_user);
user_dict->SetInteger(kKeyOauthTokenStatus, user->oauth_token_status());
- user_dict->SetBoolean(kKeySignedIn, signed_in);
+ user_dict->SetBoolean(kKeySignedIn, user->is_logged_in());
user_dict->SetBoolean(kKeyIsOwner, is_owner);
if (is_public_account) {
@@ -1262,10 +1261,6 @@ void SigninScreenHandler::SendUserList(bool animated) {
bool single_user = users.size() == 1;
for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) {
const std::string& email = (*it)->email();
- if (is_signin_to_add && (*it)->is_logged_in()) {
- // Skip all users that are already signed in.
- continue;
- }
std::string owner;
chromeos::CrosSettings::Get()->GetString(chromeos::kDeviceOwner, &owner);
@@ -1276,7 +1271,7 @@ void SigninScreenHandler::SendUserList(bool animated) {
FillUserDictionary(*it, is_owner, user_dict);
bool is_public_account =
((*it)->GetType() == User::USER_TYPE_PUBLIC_ACCOUNT);
- bool signed_in = *it == UserManager::Get()->GetLoggedInUser();
+ bool signed_in = (*it)->is_logged_in();
// Single user check here is necessary because owner info might not be
// available when running into login screen on first boot.
// See http://crosbug.com/12723
« no previous file with comments | « chrome/browser/chromeos/login/webui_screen_locker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698