OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/screens/user_selection_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 const char kKeyPublicAccount[] = "publicAccount"; | 29 const char kKeyPublicAccount[] = "publicAccount"; |
30 const char kKeyLocallyManagedUser[] = "locallyManagedUser"; | 30 const char kKeyLocallyManagedUser[] = "locallyManagedUser"; |
31 const char kKeySignedIn[] = "signedIn"; | 31 const char kKeySignedIn[] = "signedIn"; |
32 const char kKeyCanRemove[] = "canRemove"; | 32 const char kKeyCanRemove[] = "canRemove"; |
33 const char kKeyIsOwner[] = "isOwner"; | 33 const char kKeyIsOwner[] = "isOwner"; |
34 const char kKeyInitialAuthType[] = "initialAuthType"; | 34 const char kKeyInitialAuthType[] = "initialAuthType"; |
35 const char kKeyMultiProfilesAllowed[] = "isMultiProfilesAllowed"; | 35 const char kKeyMultiProfilesAllowed[] = "isMultiProfilesAllowed"; |
36 const char kKeyMultiProfilesPolicy[] = "multiProfilesPolicy"; | 36 const char kKeyMultiProfilesPolicy[] = "multiProfilesPolicy"; |
37 | 37 |
38 // Max number of users to show. | 38 // Max number of users to show. |
| 39 // Please keep synced with one in signin_userlist_unittest.cc. |
39 const size_t kMaxUsers = 18; | 40 const size_t kMaxUsers = 18; |
40 | 41 |
41 const int kPasswordClearTimeoutSec = 60; | 42 const int kPasswordClearTimeoutSec = 60; |
42 | 43 |
43 } // namespace | 44 } // namespace |
44 | 45 |
45 UserSelectionScreen::UserSelectionScreen() : handler_(NULL) { | 46 UserSelectionScreen::UserSelectionScreen() : handler_(NULL) { |
46 } | 47 } |
47 | 48 |
48 UserSelectionScreen::~UserSelectionScreen() { | 49 UserSelectionScreen::~UserSelectionScreen() { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 } | 289 } |
289 | 290 |
290 ScreenlockBridge::LockHandler::AuthType UserSelectionScreen::GetAuthType( | 291 ScreenlockBridge::LockHandler::AuthType UserSelectionScreen::GetAuthType( |
291 const std::string& username) const { | 292 const std::string& username) const { |
292 if (user_auth_type_map_.find(username) == user_auth_type_map_.end()) | 293 if (user_auth_type_map_.find(username) == user_auth_type_map_.end()) |
293 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; | 294 return ScreenlockBridge::LockHandler::OFFLINE_PASSWORD; |
294 return user_auth_type_map_.find(username)->second; | 295 return user_auth_type_map_.find(username)->second; |
295 } | 296 } |
296 | 297 |
297 } // namespace chromeos | 298 } // namespace chromeos |
OLD | NEW |