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

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

Issue 2724163002: ash: Use enum for SessionController::CycleActiveUser (Closed)
Patch Set: fix ash_shell_with_content compile Created 3 years, 10 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
« no previous file with comments | « ash/common/session/session_controller.cc ('k') | ash/common/test/test_session_state_delegate.h » ('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 fb260f1aa8b04945e323d75eb971e52afbe13fef..166b20ffdc8aeefbb1cd43d0f896521ed830eb6b 100644
--- a/ash/common/session/session_state_delegate.h
+++ b/ash/common/session/session_state_delegate.h
@@ -29,12 +29,6 @@ class WmWindow;
// TODO(xiyuan): Remove this when SessionController etc are ready.
class ASH_EXPORT SessionStateDelegate {
public:
- // Defines the cycle direction for |CycleActiveUser|.
- enum CycleUser {
- CYCLE_TO_NEXT_USER = 0, // Cycle to the next user.
- CYCLE_TO_PREVIOUS_USER, // Cycle to the previous user.
- };
-
virtual ~SessionStateDelegate() {}
// Returns the maximum possible number of logged in users.
@@ -94,7 +88,7 @@ class ASH_EXPORT SessionStateDelegate {
// Switches the active user to the next or previous user, with the same
// ordering as GetLoggedInUsers.
- virtual void CycleActiveUser(CycleUser cycle_user) = 0;
+ virtual void CycleActiveUser(CycleUserDirection direction) = 0;
// Returns true if primary user policy does not forbid multiple signin.
virtual bool IsMultiProfileAllowedByPrimaryUserPolicy() const = 0;
« no previous file with comments | « ash/common/session/session_controller.cc ('k') | ash/common/test/test_session_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698