Index: ash/system/user/user_view.cc |
diff --git a/ash/system/user/user_view.cc b/ash/system/user/user_view.cc |
index f20ba284911924b94e90082e58bae6076bfb6af7..5b5050a8d1d0b7be308c343fb5f1cfe0c1fee257 100644 |
--- a/ash/system/user/user_view.cc |
+++ b/ash/system/user/user_view.cc |
@@ -8,6 +8,7 @@ |
#include <utility> |
#include "ash/common/session/session_state_delegate.h" |
+#include "ash/common/shell_delegate.h" |
#include "ash/common/shell_window_ids.h" |
#include "ash/common/system/tray/system_tray_delegate.h" |
#include "ash/common/system/tray/tray_constants.h" |
@@ -22,8 +23,6 @@ |
#include "ash/common/wm_window.h" |
#include "ash/multi_profile_uma.h" |
#include "ash/popup_message.h" |
-#include "ash/shell.h" |
-#include "ash/shell_delegate.h" |
#include "ash/system/tray/system_tray.h" |
#include "ash/system/user/user_card_view.h" |
#include "components/signin/core/account_id/account_id.h" |
@@ -85,7 +84,7 @@ void SwitchUser(UserIndex user_index) { |
} |
bool IsMultiProfileSupportedAndUserActive() { |
- return Shell::GetInstance()->delegate()->IsMultiProfilesEnabled() && |
+ return WmShell::Get()->delegate()->IsMultiProfilesEnabled() && |
!WmShell::Get()->GetSessionStateDelegate()->IsUserSessionBlocked(); |
} |