OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/user_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/user_manager_impl.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 temp_single_logged_in_users_.clear(); | 295 temp_single_logged_in_users_.clear(); |
296 temp_single_logged_in_users_.insert(temp_single_logged_in_users_.begin(), | 296 temp_single_logged_in_users_.insert(temp_single_logged_in_users_.begin(), |
297 active_user_); | 297 active_user_); |
298 return temp_single_logged_in_users_; | 298 return temp_single_logged_in_users_; |
299 } | 299 } |
300 return lru_logged_in_users_; | 300 return lru_logged_in_users_; |
301 } | 301 } |
302 | 302 |
303 UserList UserManagerImpl::GetUnlockUsers() const { | 303 UserList UserManagerImpl::GetUnlockUsers() const { |
304 UserList unlock_users; | 304 UserList unlock_users; |
305 CHECK(primary_user_); | 305 if (primary_user_) |
306 unlock_users.push_back(primary_user_); | 306 unlock_users.push_back(primary_user_); |
Mr4D (OOO till 08-26)
2013/11/23 00:52:26
Just checking: So only one user can unlock the ses
| |
307 return unlock_users; | 307 return unlock_users; |
308 } | 308 } |
309 | 309 |
310 const std::string& UserManagerImpl::GetOwnerEmail() { | 310 const std::string& UserManagerImpl::GetOwnerEmail() { |
311 return owner_email_; | 311 return owner_email_; |
312 } | 312 } |
313 | 313 |
314 void UserManagerImpl::UserLoggedIn(const std::string& user_id, | 314 void UserManagerImpl::UserLoggedIn(const std::string& user_id, |
315 const std::string& username_hash, | 315 const std::string& username_hash, |
316 bool browser_restart) { | 316 bool browser_restart) { |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1835 } | 1835 } |
1836 } | 1836 } |
1837 | 1837 |
1838 void UserManagerImpl::OnUserNotAllowed() { | 1838 void UserManagerImpl::OnUserNotAllowed() { |
1839 LOG(ERROR) << "Shutdown session because a user is not allowed to be in the " | 1839 LOG(ERROR) << "Shutdown session because a user is not allowed to be in the " |
1840 "current session"; | 1840 "current session"; |
1841 chrome::AttemptUserExit(); | 1841 chrome::AttemptUserExit(); |
1842 } | 1842 } |
1843 | 1843 |
1844 } // namespace chromeos | 1844 } // namespace chromeos |
OLD | NEW |