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

Unified Diff: ash/common/shelf/shelf_layout_manager.cc

Issue 2416253004: ash: Use session_manager::SessionState (Closed)
Patch Set: add comment about session state in SessionStaetDelegateChromeos Created 4 years, 2 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/shelf/shelf_layout_manager.h ('k') | ash/common/shelf/shelf_locking_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_layout_manager.cc
diff --git a/ash/common/shelf/shelf_layout_manager.cc b/ash/common/shelf/shelf_layout_manager.cc
index 6bec096c7187b0ce9a20f8d4c732ddefc54ee98a..c22dccdc3f2dccfc4de24e23e62f6c05460e8f47 100644
--- a/ash/common/shelf/shelf_layout_manager.cc
+++ b/ash/common/shelf/shelf_layout_manager.cc
@@ -969,10 +969,10 @@ void ShelfLayoutManager::OnLockStateEvent(LockStateObserver::EventType event) {
}
void ShelfLayoutManager::SessionStateChanged(
- SessionStateDelegate::SessionState state) {
+ session_manager::SessionState state) {
// Check transition changes to/from the add user to session and change the
// shelf alignment accordingly
- bool add_user = state == SessionStateDelegate::SESSION_STATE_LOGIN_SECONDARY;
+ const bool add_user = state == session_manager::SessionState::LOGIN_SECONDARY;
if (add_user != state_.is_adding_user_screen) {
state_.is_adding_user_screen = add_user;
UpdateShelfVisibilityAfterLoginUIChange();
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.h ('k') | ash/common/shelf/shelf_locking_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698