OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // Cached flag of whether the currently logged-in user existed before this | 223 // Cached flag of whether the currently logged-in user existed before this |
224 // login. | 224 // login. |
225 bool is_current_user_new_; | 225 bool is_current_user_new_; |
226 | 226 |
227 // Cached flag of whether the currently logged-in user is ephemeral. Storage | 227 // Cached flag of whether the currently logged-in user is ephemeral. Storage |
228 // of persistent information is avoided for such users by not adding them to | 228 // of persistent information is avoided for such users by not adding them to |
229 // the user list in local state, not downloading their custom user images and | 229 // the user list in local state, not downloading their custom user images and |
230 // mounting their cryptohomes using tmpfs. | 230 // mounting their cryptohomes using tmpfs. |
231 bool is_current_user_ephemeral_; | 231 bool is_current_user_ephemeral_; |
232 | 232 |
| 233 // Cache current user selected index in memory. |
| 234 int current_user_wallpaper_index_; |
| 235 |
233 // The key store for the current user has been loaded. This flag is needed to | 236 // The key store for the current user has been loaded. This flag is needed to |
234 // ensure that the key store will not be loaded twice in the policy recovery | 237 // ensure that the key store will not be loaded twice in the policy recovery |
235 // "safe-mode". | 238 // "safe-mode". |
236 bool key_store_loaded_; | 239 bool key_store_loaded_; |
237 // Cached flag indicating whether ephemeral users are enabled. Defaults to | 240 // Cached flag indicating whether ephemeral users are enabled. Defaults to |
238 // |false| if the value has not been read from trusted device policy yet. | 241 // |false| if the value has not been read from trusted device policy yet. |
239 bool ephemeral_users_enabled_; | 242 bool ephemeral_users_enabled_; |
240 | 243 |
241 // Cached name of device owner. Defaults to empty string if the value has not | 244 // Cached name of device owner. Defaults to empty string if the value has not |
242 // been read from trusted device policy yet. | 245 // been read from trusted device policy yet. |
(...skipping 27 matching lines...) Expand all Loading... |
270 | 273 |
271 // Data URL for |downloaded_profile_image_|. | 274 // Data URL for |downloaded_profile_image_|. |
272 std::string downloaded_profile_image_data_url_; | 275 std::string downloaded_profile_image_data_url_; |
273 | 276 |
274 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); | 277 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); |
275 }; | 278 }; |
276 | 279 |
277 } // namespace chromeos | 280 } // namespace chromeos |
278 | 281 |
279 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 282 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
OLD | NEW |