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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 virtual void OnUserNotAllowed() OVERRIDE; | 346 virtual void OnUserNotAllowed() OVERRIDE; |
347 | 347 |
348 // Sets account locale for user with id |user_id|. | 348 // Sets account locale for user with id |user_id|. |
349 virtual void UpdateUserAccountLocale(const std::string& user_id, | 349 virtual void UpdateUserAccountLocale(const std::string& user_id, |
350 const std::string& locale); | 350 const std::string& locale); |
351 | 351 |
352 // Updates user account after locale was resolved. | 352 // Updates user account after locale was resolved. |
353 void DoUpdateAccountLocale(const std::string& user_id, | 353 void DoUpdateAccountLocale(const std::string& user_id, |
354 const std::string& resolved_locale); | 354 const std::string& resolved_locale); |
355 | 355 |
| 356 // Update the number of users. |
| 357 void UpdateNumberOfUsers(); |
| 358 |
356 // Interface to the signed settings store. | 359 // Interface to the signed settings store. |
357 CrosSettings* cros_settings_; | 360 CrosSettings* cros_settings_; |
358 | 361 |
359 // Interface to device-local account definitions and associated policy. | 362 // Interface to device-local account definitions and associated policy. |
360 policy::DeviceLocalAccountPolicyService* device_local_account_policy_service_; | 363 policy::DeviceLocalAccountPolicyService* device_local_account_policy_service_; |
361 | 364 |
362 // Indicates stage of loading user from prefs. | 365 // Indicates stage of loading user from prefs. |
363 UserLoadStage user_loading_stage_; | 366 UserLoadStage user_loading_stage_; |
364 | 367 |
365 // List of all known users. User instances are owned by |this|. Regular users | 368 // List of all known users. User instances are owned by |this|. Regular users |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 | 472 |
470 // Observer for the policy that can be used to manage user images. | 473 // Observer for the policy that can be used to manage user images. |
471 scoped_ptr<policy::CloudExternalDataPolicyObserver> policy_observer_; | 474 scoped_ptr<policy::CloudExternalDataPolicyObserver> policy_observer_; |
472 | 475 |
473 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); | 476 DISALLOW_COPY_AND_ASSIGN(UserManagerImpl); |
474 }; | 477 }; |
475 | 478 |
476 } // namespace chromeos | 479 } // namespace chromeos |
477 | 480 |
478 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ | 481 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_IMPL_H_ |
OLD | NEW |