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

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

Issue 2416253004: ash: Use session_manager::SessionState (Closed)
Patch Set: fix compile 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
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..fa4990343d175e78d44f0e6d85449e2f9cc33d4e 100644
--- a/ash/common/shelf/shelf_layout_manager.cc
+++ b/ash/common/shelf/shelf_layout_manager.cc
@@ -968,11 +968,10 @@ void ShelfLayoutManager::OnLockStateEvent(LockStateObserver::EventType event) {
}
}
-void ShelfLayoutManager::SessionStateChanged(
- SessionStateDelegate::SessionState state) {
+void ShelfLayoutManager::SessionStateChanged(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 == SessionState::LOGIN_SECONDARY;
if (add_user != state_.is_adding_user_screen) {
state_.is_adding_user_screen = add_user;
UpdateShelfVisibilityAfterLoginUIChange();

Powered by Google App Engine
This is Rietveld 408576698