blob: 520f7ff70afbfa810391c0f512336526d14fea11 [file] [log] [blame]
[email protected]babc1482014-08-02 05:44:131// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]4d390782014-08-15 09:22:585#ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
6#define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
[email protected]babc1482014-08-02 05:44:137
alemate16e470e2015-04-14 15:55:408#include <map>
dcheng3f767dc32016-04-25 22:54:229#include <memory>
[email protected]babc1482014-08-02 05:44:1310#include <set>
11#include <string>
12#include <vector>
13
avi5dd91f82015-12-25 22:30:4614#include "base/macros.h"
[email protected]babc1482014-08-02 05:44:1315#include "base/memory/weak_ptr.h"
16#include "base/observer_list.h"
17#include "base/synchronization/lock.h"
18#include "base/time/time.h"
alemate3ffbde6f2015-11-03 02:02:5519#include "components/signin/core/account_id/account_id.h"
[email protected]babc1482014-08-02 05:44:1320#include "components/user_manager/user.h"
[email protected]4d390782014-08-15 09:22:5821#include "components/user_manager/user_manager.h"
22#include "components/user_manager/user_manager_export.h"
merkulovab82b7132014-11-17 11:06:5023#include "components/user_manager/user_type.h"
[email protected]babc1482014-08-02 05:44:1324
25class PrefService;
26class PrefRegistrySimple;
27
[email protected]4d390782014-08-15 09:22:5828namespace base {
antrim35a57752015-03-11 12:42:1829class DictionaryValue;
[email protected]4d390782014-08-15 09:22:5830class ListValue;
31class TaskRunner;
32}
33
34namespace user_manager {
[email protected]babc1482014-08-02 05:44:1335
36class RemoveUserDelegate;
37
38// Base implementation of the UserManager interface.
[email protected]4d390782014-08-15 09:22:5839class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
[email protected]babc1482014-08-02 05:44:1340 public:
[email protected]ac58eaf72014-08-19 13:06:4241 // Creates UserManagerBase with |task_runner| for UI thread and
42 // |blocking_task_runner| for SequencedWorkerPool.
alemate33433e22016-01-13 14:50:3043 explicit UserManagerBase(scoped_refptr<base::TaskRunner> task_runner);
dchengbd5bd4f2015-01-23 16:01:3844 ~UserManagerBase() override;
[email protected]babc1482014-08-02 05:44:1345
46 // Registers UserManagerBase preferences.
47 static void RegisterPrefs(PrefRegistrySimple* registry);
48
49 // UserManager implementation:
dchengbd5bd4f2015-01-23 16:01:3850 void Shutdown() override;
51 const UserList& GetUsers() const override;
52 const UserList& GetLoggedInUsers() const override;
53 const UserList& GetLRULoggedInUsers() const override;
alemate3ffbde6f2015-11-03 02:02:5554 const AccountId& GetOwnerAccountId() const override;
55 void UserLoggedIn(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3856 const std::string& user_id_hash,
57 bool browser_restart) override;
alemate3ffbde6f2015-11-03 02:02:5558 void SwitchActiveUser(const AccountId& account_id) override;
dchengbd5bd4f2015-01-23 16:01:3859 void SwitchToLastActiveUser() override;
60 void SessionStarted() override;
alemate3ffbde6f2015-11-03 02:02:5561 void RemoveUser(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3862 RemoveUserDelegate* delegate) override;
alemate3ffbde6f2015-11-03 02:02:5563 void RemoveUserFromList(const AccountId& account_id) override;
64 bool IsKnownUser(const AccountId& account_id) const override;
65 const User* FindUser(const AccountId& account_id) const override;
66 User* FindUserAndModify(const AccountId& account_id) override;
dchengbd5bd4f2015-01-23 16:01:3867 const User* GetLoggedInUser() const override;
68 User* GetLoggedInUser() override;
69 const User* GetActiveUser() const override;
70 User* GetActiveUser() override;
71 const User* GetPrimaryUser() const override;
alemate3ffbde6f2015-11-03 02:02:5572 void SaveUserOAuthStatus(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3873 User::OAuthTokenStatus oauth_token_status) override;
alemate3ffbde6f2015-11-03 02:02:5574 void SaveForceOnlineSignin(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3875 bool force_online_signin) override;
alemate3ffbde6f2015-11-03 02:02:5576 void SaveUserDisplayName(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3877 const base::string16& display_name) override;
alemate3ffbde6f2015-11-03 02:02:5578 base::string16 GetUserDisplayName(const AccountId& account_id) const override;
79 void SaveUserDisplayEmail(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3880 const std::string& display_email) override;
alemate3ffbde6f2015-11-03 02:02:5581 std::string GetUserDisplayEmail(const AccountId& account_id) const override;
82 void SaveUserType(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3883 const UserType& user_type) override;
alemate3ffbde6f2015-11-03 02:02:5584 void UpdateUserAccountData(const AccountId& account_id,
dchengbd5bd4f2015-01-23 16:01:3885 const UserAccountData& account_data) override;
86 bool IsCurrentUserOwner() const override;
87 bool IsCurrentUserNew() const override;
88 bool IsCurrentUserNonCryptohomeDataEphemeral() const override;
89 bool CanCurrentUserLock() const override;
90 bool IsUserLoggedIn() const override;
91 bool IsLoggedInAsUserWithGaiaAccount() const override;
92 bool IsLoggedInAsChildUser() const override;
93 bool IsLoggedInAsPublicAccount() const override;
94 bool IsLoggedInAsGuest() const override;
95 bool IsLoggedInAsSupervisedUser() const override;
96 bool IsLoggedInAsKioskApp() const override;
97 bool IsLoggedInAsStub() const override;
98 bool IsSessionStarted() const override;
99 bool IsUserNonCryptohomeDataEphemeral(
alemate3ffbde6f2015-11-03 02:02:55100 const AccountId& account_id) const override;
dchengbd5bd4f2015-01-23 16:01:38101 void AddObserver(UserManager::Observer* obs) override;
102 void RemoveObserver(UserManager::Observer* obs) override;
103 void AddSessionStateObserver(
mostynbfe59f482014-10-06 15:04:46104 UserManager::UserSessionStateObserver* obs) override;
dchengbd5bd4f2015-01-23 16:01:38105 void RemoveSessionStateObserver(
mostynbfe59f482014-10-06 15:04:46106 UserManager::UserSessionStateObserver* obs) override;
dchengbd5bd4f2015-01-23 16:01:38107 void NotifyLocalStateChanged() override;
108 void ChangeUserChildStatus(User* user, bool is_child) override;
alemate33433e22016-01-13 14:50:30109 void Initialize() override;
[email protected]babc1482014-08-02 05:44:13110
alemate3ffbde6f2015-11-03 02:02:55111 // This method updates "User was added to the device in this session nad is
112 // not full initialized yet" flag.
alematee66a4962015-02-26 16:12:00113 virtual void SetIsCurrentUserNew(bool is_new);
114
xiyuan3237cef2015-03-06 20:44:45115 // TODO(xiyuan): Figure out a better way to expose this info.
alemate3ffbde6f2015-11-03 02:02:55116 virtual bool HasPendingBootstrap(const AccountId& account_id) const;
xiyuan3237cef2015-03-06 20:44:45117
hcarmonab1723ed32015-11-18 21:52:58118 // Helper function that converts users from |users_list| to |users_vector| and
[email protected]babc1482014-08-02 05:44:13119 // |users_set|. Duplicates and users already present in |existing_users| are
120 // skipped.
hcarmonab1723ed32015-11-18 21:52:58121 void ParseUserList(const base::ListValue& users_list,
122 const std::set<AccountId>& existing_users,
123 std::vector<AccountId>* users_vector,
124 std::set<AccountId>* users_set);
[email protected]babc1482014-08-02 05:44:13125
alemate0242b472015-04-20 09:53:40126 // Returns true if trusted device policies have successfully been retrieved
127 // and ephemeral users are enabled.
128 virtual bool AreEphemeralUsersEnabled() const = 0;
129
[email protected]babc1482014-08-02 05:44:13130 protected:
[email protected]babc1482014-08-02 05:44:13131 // Adds |user| to users list, and adds it to front of LRU list. It is assumed
132 // that there is no user with same id.
[email protected]4d390782014-08-15 09:22:58133 virtual void AddUserRecord(User* user);
[email protected]babc1482014-08-02 05:44:13134
[email protected]babc1482014-08-02 05:44:13135 // Returns true if user may be removed.
[email protected]4d390782014-08-15 09:22:58136 virtual bool CanUserBeRemoved(const User* user) const;
[email protected]babc1482014-08-02 05:44:13137
138 // A wrapper around C++ delete operator. Deletes |user|, and when |user|
139 // equals to active_user_, active_user_ is reset to NULL.
[email protected]4d390782014-08-15 09:22:58140 virtual void DeleteUser(User* user);
[email protected]babc1482014-08-02 05:44:13141
142 // Returns the locale used by the application.
143 virtual const std::string& GetApplicationLocale() const = 0;
144
[email protected]babc1482014-08-02 05:44:13145 // Loads |users_| from Local State if the list has not been loaded yet.
146 // Subsequent calls have no effect. Must be called on the UI thread.
merkulova793f3022015-02-04 10:18:30147 virtual void EnsureUsersLoaded();
[email protected]babc1482014-08-02 05:44:13148
alemate3ffbde6f2015-11-03 02:02:55149 // Handle OAuth token |status| change for |account_id|.
[email protected]4d390782014-08-15 09:22:58150 virtual void HandleUserOAuthTokenStatusChange(
alemate3ffbde6f2015-11-03 02:02:55151 const AccountId& account_id,
[email protected]4d390782014-08-15 09:22:58152 User::OAuthTokenStatus status) const = 0;
153
[email protected]babc1482014-08-02 05:44:13154 // Returns true if device is enterprise managed.
155 virtual bool IsEnterpriseManaged() const = 0;
156
xiyuand4f04572016-04-19 18:22:53157 // Loads device local accounts from the Local state and fills in
158 // |device_local_accounts_set|.
159 virtual void LoadDeviceLocalAccounts(
160 std::set<AccountId>* device_local_accounts_set) = 0;
[email protected]babc1482014-08-02 05:44:13161
162 // Notifies that user has logged in.
163 virtual void NotifyOnLogin();
164
165 // Notifies observers that another user was added to the session.
166 // If |user_switch_pending| is true this means that user has not been fully
167 // initialized yet like waiting for profile to be loaded.
[email protected]4d390782014-08-15 09:22:58168 virtual void NotifyUserAddedToSession(const User* added_user,
[email protected]babc1482014-08-02 05:44:13169 bool user_switch_pending);
170
171 // Performs any additional actions before user list is loaded.
172 virtual void PerformPreUserListLoadingActions() = 0;
173
174 // Performs any additional actions after user list is loaded.
175 virtual void PerformPostUserListLoadingActions() = 0;
176
177 // Performs any additional actions after UserLoggedIn() execution has been
178 // completed.
179 // |browser_restart| is true when reloading Chrome after crash to distinguish
180 // from normal sign in flow.
181 virtual void PerformPostUserLoggedInActions(bool browser_restart) = 0;
182
183 // Implementation for RemoveUser method. It is synchronous. It is called from
184 // RemoveUserInternal after owner check.
alemate3ffbde6f2015-11-03 02:02:55185 virtual void RemoveNonOwnerUserInternal(const AccountId& account_id,
[email protected]babc1482014-08-02 05:44:13186 RemoveUserDelegate* delegate);
187
188 // Removes a regular or supervised user from the user list.
189 // Returns the user if found or NULL otherwise.
190 // Also removes the user from the persistent user list.
alemate3ffbde6f2015-11-03 02:02:55191 User* RemoveRegularOrSupervisedUserFromList(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13192
193 // Implementation for RemoveUser method. This is an asynchronous part of the
194 // method, that verifies that owner will not get deleted, and calls
195 // |RemoveNonOwnerUserInternal|.
alemate3ffbde6f2015-11-03 02:02:55196 virtual void RemoveUserInternal(const AccountId& account_id,
[email protected]babc1482014-08-02 05:44:13197 RemoveUserDelegate* delegate);
198
199 // Removes data stored or cached outside the user's cryptohome (wallpaper,
200 // avatar, OAuth token status, display name, display email).
alemate3ffbde6f2015-11-03 02:02:55201 virtual void RemoveNonCryptohomeData(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13202
203 // Check for a particular user type.
204
alemate3ffbde6f2015-11-03 02:02:55205 // Returns true if |account_id| represents demo app.
206 virtual bool IsDemoApp(const AccountId& account_id) const = 0;
[email protected]babc1482014-08-02 05:44:13207
xiyuand4f04572016-04-19 18:22:53208 // Returns true if |account_id| represents a device local account that has
209 // been marked for deletion.
210 virtual bool IsDeviceLocalAccountMarkedForRemoval(
alemate3ffbde6f2015-11-03 02:02:55211 const AccountId& account_id) const = 0;
[email protected]babc1482014-08-02 05:44:13212
213 // These methods are called when corresponding user type has signed in.
214
215 // Indicates that the demo account has just logged in.
216 virtual void DemoAccountLoggedIn() = 0;
217
218 // Indicates that a user just logged in as guest.
219 virtual void GuestUserLoggedIn();
220
221 // Indicates that a kiosk app robot just logged in.
xiyuand4f04572016-04-19 18:22:53222 virtual void KioskAppLoggedIn(User* user) = 0;
[email protected]babc1482014-08-02 05:44:13223
224 // Indicates that a user just logged into a public session.
[email protected]4d390782014-08-15 09:22:58225 virtual void PublicAccountUserLoggedIn(User* user) = 0;
[email protected]babc1482014-08-02 05:44:13226
227 // Indicates that a regular user just logged in.
alemate3ffbde6f2015-11-03 02:02:55228 virtual void RegularUserLoggedIn(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13229
230 // Indicates that a regular user just logged in as ephemeral.
alemate3ffbde6f2015-11-03 02:02:55231 virtual void RegularUserLoggedInAsEphemeral(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13232
[email protected]babc1482014-08-02 05:44:13233 // Indicates that a supervised user just logged in.
alemate3ffbde6f2015-11-03 02:02:55234 virtual void SupervisedUserLoggedIn(const AccountId& account_id) = 0;
[email protected]babc1482014-08-02 05:44:13235
peletskyi2b8c9d232015-07-31 16:23:58236 // Should be called when regular user was removed.
alemate3ffbde6f2015-11-03 02:02:55237 virtual void OnUserRemoved(const AccountId& account_id) = 0;
peletskyi2b8c9d232015-07-31 16:23:58238
alemate33433e22016-01-13 14:50:30239 // Update the global LoginState.
240 virtual void UpdateLoginState(const User* active_user,
241 const User* primary_user,
242 bool is_current_user_owner) const = 0;
243
[email protected]babc1482014-08-02 05:44:13244 // Getters/setters for private members.
245
246 virtual void SetCurrentUserIsOwner(bool is_current_user_owner);
247
248 virtual bool GetEphemeralUsersEnabled() const;
249 virtual void SetEphemeralUsersEnabled(bool enabled);
250
alemate3ffbde6f2015-11-03 02:02:55251 virtual void SetOwnerId(const AccountId& owner_account_id);
[email protected]babc1482014-08-02 05:44:13252
alemate3ffbde6f2015-11-03 02:02:55253 virtual const AccountId& GetPendingUserSwitchID() const;
254 virtual void SetPendingUserSwitchId(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13255
256 // The logged-in user that is currently active in current session.
257 // NULL until a user has logged in, then points to one
258 // of the User instances in |users_|, the |guest_user_| instance or an
259 // ephemeral user instance.
alemate3ffbde6f2015-11-03 02:02:55260 User* active_user_ = nullptr;
[email protected]babc1482014-08-02 05:44:13261
262 // The primary user of the current session. It is recorded for the first
263 // signed-in user and does not change thereafter.
alemate3ffbde6f2015-11-03 02:02:55264 User* primary_user_ = nullptr;
[email protected]babc1482014-08-02 05:44:13265
266 // List of all known users. User instances are owned by |this|. Regular users
xiyuand4f04572016-04-19 18:22:53267 // are removed by |RemoveUserFromList|, device local accounts by
268 // |UpdateAndCleanUpDeviceLocalAccounts|.
[email protected]4d390782014-08-15 09:22:58269 UserList users_;
[email protected]babc1482014-08-02 05:44:13270
merkulova793f3022015-02-04 10:18:30271 // List of all users that are logged in current session. These point to User
272 // instances in |users_|. Only one of them could be marked as active.
273 UserList logged_in_users_;
274
275 // A list of all users that are logged in the current session. In contrast to
276 // |logged_in_users|, the order of this list is least recently used so that
277 // the active user should always be the first one in the list.
278 UserList lru_logged_in_users_;
279
[email protected]babc1482014-08-02 05:44:13280 private:
281 // Stages of loading user list from preferences. Some methods can have
282 // different behavior depending on stage.
283 enum UserLoadStage { STAGE_NOT_LOADED = 0, STAGE_LOADING, STAGE_LOADED };
284
285 // Returns a list of users who have logged into this device previously.
286 // Same as GetUsers but used if you need to modify User from that list.
[email protected]4d390782014-08-15 09:22:58287 UserList& GetUsersAndModify();
[email protected]babc1482014-08-02 05:44:13288
289 // Returns the user with the given email address if found in the persistent
290 // list. Returns |NULL| otherwise.
alemate3ffbde6f2015-11-03 02:02:55291 const User* FindUserInList(const AccountId& account_id) const;
[email protected]babc1482014-08-02 05:44:13292
293 // Returns |true| if user with the given id is found in the persistent list.
294 // Returns |false| otherwise. Does not trigger user loading.
alemate3ffbde6f2015-11-03 02:02:55295 bool UserExistsInList(const AccountId& account_id) const;
[email protected]babc1482014-08-02 05:44:13296
297 // Same as FindUserInList but returns non-const pointer to User object.
alemate3ffbde6f2015-11-03 02:02:55298 User* FindUserInListAndModify(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13299
300 // Reads user's oauth token status from local state preferences.
alemate3ffbde6f2015-11-03 02:02:55301 User::OAuthTokenStatus LoadUserOAuthStatus(const AccountId& account_id) const;
[email protected]babc1482014-08-02 05:44:13302
303 // Read a flag indicating whether online authentication against GAIA should
304 // be enforced during the user's next sign-in from local state preferences.
alemate3ffbde6f2015-11-03 02:02:55305 bool LoadForceOnlineSignin(const AccountId& account_id) const;
[email protected]babc1482014-08-02 05:44:13306
307 // Notifies observers that merge session state had changed.
308 void NotifyMergeSessionStateChanged();
309
310 // Notifies observers that active user has changed.
[email protected]4d390782014-08-15 09:22:58311 void NotifyActiveUserChanged(const User* active_user);
[email protected]babc1482014-08-02 05:44:13312
alemate3ffbde6f2015-11-03 02:02:55313 // Notifies observers that active account_id hash has changed.
[email protected]babc1482014-08-02 05:44:13314 void NotifyActiveUserHashChanged(const std::string& hash);
315
alemate33433e22016-01-13 14:50:30316 // Call UpdateLoginState.
317 void CallUpdateLoginState();
[email protected]babc1482014-08-02 05:44:13318
319 // Insert |user| at the front of the LRU user list.
[email protected]4d390782014-08-15 09:22:58320 void SetLRUUser(User* user);
[email protected]babc1482014-08-02 05:44:13321
merkulovac3ae44d2014-11-17 09:35:07322 // Sends metrics in response to a user with gaia account (regular) logging in.
alemate3ffbde6f2015-11-03 02:02:55323 void SendGaiaUserLoginMetrics(const AccountId& account_id);
[email protected]babc1482014-08-02 05:44:13324
alemate3ffbde6f2015-11-03 02:02:55325 // Sets account locale for user with id |account_id|.
326 virtual void UpdateUserAccountLocale(const AccountId& account_id,
[email protected]babc1482014-08-02 05:44:13327 const std::string& locale);
328
329 // Updates user account after locale was resolved.
alemate3ffbde6f2015-11-03 02:02:55330 void DoUpdateAccountLocale(const AccountId& account_id,
dcheng3f767dc32016-04-25 22:54:22331 std::unique_ptr<std::string> resolved_locale);
[email protected]babc1482014-08-02 05:44:13332
333 // Indicates stage of loading user from prefs.
alemate3ffbde6f2015-11-03 02:02:55334 UserLoadStage user_loading_stage_ = STAGE_NOT_LOADED;
[email protected]babc1482014-08-02 05:44:13335
[email protected]babc1482014-08-02 05:44:13336 // True if SessionStarted() has been called.
alemate3ffbde6f2015-11-03 02:02:55337 bool session_started_ = false;
[email protected]babc1482014-08-02 05:44:13338
339 // Cached flag of whether currently logged-in user is owner or not.
340 // May be accessed on different threads, requires locking.
alemate3ffbde6f2015-11-03 02:02:55341 bool is_current_user_owner_ = false;
[email protected]babc1482014-08-02 05:44:13342 mutable base::Lock is_current_user_owner_lock_;
343
344 // Cached flag of whether the currently logged-in user existed before this
345 // login.
alemate3ffbde6f2015-11-03 02:02:55346 bool is_current_user_new_ = false;
[email protected]babc1482014-08-02 05:44:13347
348 // Cached flag of whether the currently logged-in user is a regular user who
349 // logged in as ephemeral. Storage of persistent information is avoided for
350 // such users by not adding them to the persistent user list, not downloading
351 // their custom avatars and mounting their cryptohomes using tmpfs. Defaults
352 // to |false|.
alemate3ffbde6f2015-11-03 02:02:55353 bool is_current_user_ephemeral_regular_user_ = false;
[email protected]babc1482014-08-02 05:44:13354
355 // Cached flag indicating whether the ephemeral user policy is enabled.
356 // Defaults to |false| if the value has not been read from trusted device
357 // policy yet.
alemate3ffbde6f2015-11-03 02:02:55358 bool ephemeral_users_enabled_ = false;
[email protected]babc1482014-08-02 05:44:13359
alemate3ffbde6f2015-11-03 02:02:55360 // Cached name of device owner. Defaults to empty if the value has not
[email protected]babc1482014-08-02 05:44:13361 // been read from trusted device policy yet.
alemate3ffbde6f2015-11-03 02:02:55362 AccountId owner_account_id_ = EmptyAccountId();
[email protected]babc1482014-08-02 05:44:13363
brettw236d3172015-06-03 16:31:43364 base::ObserverList<UserManager::Observer> observer_list_;
[email protected]babc1482014-08-02 05:44:13365
366 // TODO(nkostylev): Merge with session state refactoring CL.
brettw236d3172015-06-03 16:31:43367 base::ObserverList<UserManager::UserSessionStateObserver>
[email protected]babc1482014-08-02 05:44:13368 session_state_observer_list_;
369
370 // Time at which this object was created.
alemate3ffbde6f2015-11-03 02:02:55371 base::TimeTicks manager_creation_time_ = base::TimeTicks::Now();
[email protected]babc1482014-08-02 05:44:13372
373 // ID of the user just added to the session that needs to be activated
374 // as soon as user's profile is loaded.
alemate3ffbde6f2015-11-03 02:02:55375 AccountId pending_user_switch_ = EmptyAccountId();
[email protected]babc1482014-08-02 05:44:13376
nkostylev5df7e992014-09-26 09:03:47377 // ID of the user that was active in the previous session.
378 // Preference value is stored here before first user signs in
379 // because pref will be overidden once session restore starts.
alemate3ffbde6f2015-11-03 02:02:55380 AccountId last_session_active_account_id_ = EmptyAccountId();
381 bool last_session_active_account_id_initialized_ = false;
nkostylev5df7e992014-09-26 09:03:47382
[email protected]ac58eaf72014-08-19 13:06:42383 // TaskRunner for UI thread.
[email protected]4d390782014-08-15 09:22:58384 scoped_refptr<base::TaskRunner> task_runner_;
[email protected]ac58eaf72014-08-19 13:06:42385
[email protected]babc1482014-08-02 05:44:13386 base::WeakPtrFactory<UserManagerBase> weak_factory_;
387
388 DISALLOW_COPY_AND_ASSIGN(UserManagerBase);
389};
390
[email protected]4d390782014-08-15 09:22:58391} // namespace user_manager
[email protected]babc1482014-08-02 05:44:13392
[email protected]4d390782014-08-15 09:22:58393#endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_