Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1482)

Unified Diff: chrome/browser/chromeos/login/users/user_manager.h

Issue 417623002: user_manager component: Add UserManagerBase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: check for LocalState, update test - make sure that policies are initialized on UserManager creation Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/users/user_manager.h
diff --git a/chrome/browser/chromeos/login/users/user_manager.h b/chrome/browser/chromeos/login/users/user_manager.h
index fe42e311ab0bb37bb433bbcf7a48e0193b23291d..8b2d961664c04858f6b7535865140cb8d85ee4ac 100644
--- a/chrome/browser/chromeos/login/users/user_manager.h
+++ b/chrome/browser/chromeos/login/users/user_manager.h
@@ -19,7 +19,7 @@ class RemoveUserDelegate;
class UserImageManager;
class SupervisedUserManager;
-// Base class for UserManagerImpl - provides a mechanism for discovering users
+// Interface for UserManagerBase - provides a mechanism for discovering users
// who have logged into this Chrome OS device before and updating that list.
class UserManager {
public:
@@ -122,7 +122,7 @@ class UserManager {
// Returns a list of users who are currently logged in in the LRU order -
// so the active user is the first one in the list. If there is no user logged
// in, the current user will be returned.
- virtual const user_manager::UserList& GetLRULoggedInUsers() = 0;
+ virtual const user_manager::UserList& GetLRULoggedInUsers() const = 0;
// Returns a list of users who can unlock the device.
// This list is based on policy and whether user is able to do unlock.
@@ -134,7 +134,7 @@ class UserManager {
// Returns the email of the owner user. Returns an empty string if there is
// no owner for the device.
- virtual const std::string& GetOwnerEmail() = 0;
+ virtual const std::string& GetOwnerEmail() const = 0;
// Indicates that a user with the given |user_id| has just logged in. The
// persistent list is updated accordingly if the user is not ephemeral.

Powered by Google App Engine
This is Rietveld 408576698