summaryrefslogtreecommitdiff
path: root/chromium/components/user_manager/user_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/user_manager/user_manager.h')
-rw-r--r--chromium/components/user_manager/user_manager.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/chromium/components/user_manager/user_manager.h b/chromium/components/user_manager/user_manager.h
index d13ef14307a..0d892fae197 100644
--- a/chromium/components/user_manager/user_manager.h
+++ b/chromium/components/user_manager/user_manager.h
@@ -22,6 +22,10 @@ namespace user_manager {
class ScopedUserManager;
class RemoveUserDelegate;
+// A list pref of the the regular users known on this device, arranged in LRU
+// order, stored in local state.
+USER_MANAGER_EXPORT extern const char kRegularUsersPref[];
+
// Interface for UserManagerBase - that provides base implementation for
// Chrome OS user management. Typical features:
// * Get list of all know users (who have logged into this Chrome OS device)
@@ -62,7 +66,7 @@ class USER_MANAGER_EXPORT UserManager {
class UserSessionStateObserver {
public:
// Called when active user has changed.
- virtual void ActiveUserChanged(const User* active_user);
+ virtual void ActiveUserChanged(User* active_user);
// Called when another user got added to the existing session.
virtual void UserAddedToSession(const User* added_user);
@@ -237,12 +241,6 @@ class USER_MANAGER_EXPORT UserManager {
virtual void SaveUserDisplayEmail(const AccountId& account_id,
const std::string& display_email) = 0;
- // Returns the display email for user |account_id| if it is known (was
- // previously set by a |SaveUserDisplayEmail| call).
- // Otherwise, returns |account_id| itself.
- virtual std::string GetUserDisplayEmail(
- const AccountId& account_id) const = 0;
-
// Saves user's type for |user| into local state preferences.
virtual void SaveUserType(const User* user) = 0;
@@ -410,19 +408,6 @@ class USER_MANAGER_EXPORT UserManager {
static UserManager* SetForTesting(UserManager* user_manager);
};
-// TODO(xiyuan): Move this along with UserSessionStateObserver
-class USER_MANAGER_EXPORT ScopedUserSessionStateObserver {
- public:
- explicit ScopedUserSessionStateObserver(
- UserManager::UserSessionStateObserver* observer);
- ~ScopedUserSessionStateObserver();
-
- private:
- UserManager::UserSessionStateObserver* const observer_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedUserSessionStateObserver);
-};
-
} // namespace user_manager
#endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_