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

Unified Diff: ash/common/session/session_state_delegate.h

Issue 2512693003: ash: Replace SessionStateDelegate::CanAddUserToMultiProfile (Closed)
Patch Set: for #2 Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ash/common/session/session_state_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_state_delegate.h
diff --git a/ash/common/session/session_state_delegate.h b/ash/common/session/session_state_delegate.h
index f8b189b109622f7b4e1970ff8442c065bc256cac..ebd91989f0a1d121230039cf8eeaec7be5d12aa1 100644
--- a/ash/common/session/session_state_delegate.h
+++ b/ash/common/session/session_state_delegate.h
@@ -33,12 +33,6 @@ class ASH_EXPORT SessionStateDelegate {
CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user.
};
- enum AddUserError {
- ADD_USER_ERROR_NOT_ALLOWED_PRIMARY_USER = 0,
- ADD_USER_ERROR_OUT_OF_USERS,
- ADD_USER_ERROR_MAXIMUM_USERS_REACHED,
- };
-
virtual ~SessionStateDelegate() {}
// Returns the maximum possible number of logged in users.
@@ -48,10 +42,8 @@ class ASH_EXPORT SessionStateDelegate {
// no session in progress or no active user.
virtual int NumberOfLoggedInUsers() const = 0;
- // Returns true if there is possible to add more users to multiprofile
- // session. Error is stored in |error| if it is not NULL and function
- // returned false.
- virtual bool CanAddUserToMultiProfile(AddUserError* error) const;
+ // Gets the policy of adding a user session to ash.
+ virtual AddUserSessionPolicy GetAddUserSessionPolicy() const;
// Returns |true| if the session has been fully started for the active user.
// When a user becomes active, the profile and browser UI are not immediately
« no previous file with comments | « no previous file | ash/common/session/session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698