Index: chrome/browser/chromeos/login/user_manager_impl.h |
diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h |
index 6c04dabd2cf971c21cfc71b5dfe88e7437c985e9..c2591e6ddb4a17181e01c5e01bec1a930a397ca0 100644 |
--- a/chrome/browser/chromeos/login/user_manager_impl.h |
+++ b/chrome/browser/chromeos/login/user_manager_impl.h |
@@ -7,13 +7,12 @@ |
#include <map> |
#include <string> |
+#include <vector> |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/memory/singleton.h" |
#include "base/observer_list.h" |
#include "base/synchronization/lock.h" |
-#include "base/values.h" |
#include "chrome/browser/chromeos/login/user.h" |
#include "chrome/browser/chromeos/login/user_image_manager_impl.h" |
#include "chrome/browser/chromeos/login/user_manager.h" |
@@ -28,6 +27,10 @@ |
class PrefService; |
class ProfileSyncService; |
+namespace policy { |
+class DeviceLocalAccount; |
+} |
+ |
namespace chromeos { |
class RemoveUserDelegate; |
@@ -131,7 +134,7 @@ class UserManagerImpl |
virtual void OnStateChanged() OVERRIDE; |
// policy::DeviceLocalAccountPolicyService::Observer implementation. |
- virtual void OnPolicyUpdated(const std::string& account_id) OVERRIDE; |
+ virtual void OnPolicyUpdated(const std::string& user_id) OVERRIDE; |
virtual void OnDeviceLocalAccountsChanged() OVERRIDE; |
private: |
@@ -216,12 +219,13 @@ class UserManagerImpl |
// Also removes the user from the persistent user list. |
User* RemoveRegularOrLocallyManagedUserFromList(const std::string& username); |
- // Replaces the list of public accounts with |public_accounts|. Ensures that |
- // data belonging to accounts no longer on the list is removed. Returns |true| |
- // if the list has changed. |
+ // Replaces the list of public accounts with those found in |
+ // |device_local_accounts|. Ensures that data belonging to accounts no longer |
+ // on the list is removed. Returns |true| if the list has changed. |
// Public accounts are defined by policy. This method is called whenever an |
// updated list of public accounts is received from policy. |
- bool UpdateAndCleanUpPublicAccounts(const base::ListValue& public_accounts); |
+ bool UpdateAndCleanUpPublicAccounts( |
+ const std::vector<policy::DeviceLocalAccount>& device_local_accounts); |
// Updates the display name for public account |username| from policy settings |
// associated with that username. |
@@ -248,9 +252,6 @@ class UserManagerImpl |
// Update the global LoginState. |
void UpdateLoginState(); |
- // Gets the list of public accounts defined in device settings. |
- void ReadPublicAccounts(base::ListValue* public_accounts); |
- |
// Interface to the signed settings store. |
CrosSettings* cros_settings_; |