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

Side by Side Diff: chrome/browser/chromeos/login/users/user_manager.h

Issue 341453002: [multi-profiles] Allow bringing up sign in UI even if all users are restricted per their policies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/user_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_USERS_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/base/locale_util.h" 10 #include "chrome/browser/chromeos/base/locale_util.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 virtual MultiProfileUserController* GetMultiProfileUserController() = 0; 127 virtual MultiProfileUserController* GetMultiProfileUserController() = 0;
128 virtual UserImageManager* GetUserImageManager(const std::string& user_id) = 0; 128 virtual UserImageManager* GetUserImageManager(const std::string& user_id) = 0;
129 virtual SupervisedUserManager* GetSupervisedUserManager() = 0; 129 virtual SupervisedUserManager* GetSupervisedUserManager() = 0;
130 130
131 // Returns a list of users who have logged into this device previously. This 131 // Returns a list of users who have logged into this device previously. This
132 // is sorted by last login date with the most recent user at the beginning. 132 // is sorted by last login date with the most recent user at the beginning.
133 virtual const UserList& GetUsers() const = 0; 133 virtual const UserList& GetUsers() const = 0;
134 134
135 // Returns list of users admitted for logging in into multi-profile session. 135 // Returns list of users admitted for logging in into multi-profile session.
136 // Users that have a policy that prevents them from being added to the
137 // multi-profile session will still be part of this list as long as they
138 // are regular users (i.e. not a public session/supervised etc.).
139 // Returns an empty list in case when primary user is not a regular one or
140 // has a policy that prohibids it to be part of multi-profile session.
136 virtual UserList GetUsersAdmittedForMultiProfile() const = 0; 141 virtual UserList GetUsersAdmittedForMultiProfile() const = 0;
137 142
138 // Returns a list of users who are currently logged in. 143 // Returns a list of users who are currently logged in.
139 virtual const UserList& GetLoggedInUsers() const = 0; 144 virtual const UserList& GetLoggedInUsers() const = 0;
140 145
141 // Returns a list of users who are currently logged in in the LRU order - 146 // Returns a list of users who are currently logged in in the LRU order -
142 // so the active user is the first one in the list. If there is no user logged 147 // so the active user is the first one in the list. If there is no user logged
143 // in, the current user will be returned. 148 // in, the current user will be returned.
144 virtual const UserList& GetLRULoggedInUsers() = 0; 149 virtual const UserList& GetLRULoggedInUsers() = 0;
145 150
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 ScopedTestUserManager(); 408 ScopedTestUserManager();
404 ~ScopedTestUserManager(); 409 ~ScopedTestUserManager();
405 410
406 private: 411 private:
407 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); 412 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
408 }; 413 };
409 414
410 } // namespace chromeos 415 } // namespace chromeos
411 416
412 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ 417 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698