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

Unified Diff: chrome/browser/ui/ash/session_util.cc

Issue 2619083002: Clean up SessionStateDelegate in chrome (Closed)
Patch Set: rebase Created 3 years, 11 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 | « chrome/browser/ui/ash/session_controller_client.cc ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/session_util.cc
diff --git a/chrome/browser/ui/ash/session_util.cc b/chrome/browser/ui/ash/session_util.cc
index f05287e3dbe782b1f3ad0b8a7d01ad867c4ce050..4a11232167a45d368b13b63df1c15125f4fb1b94 100644
--- a/chrome/browser/ui/ash/session_util.cc
+++ b/chrome/browser/ui/ash/session_util.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/ui/ash/session_util.h"
-#include "ash/common/session/session_state_delegate.h"
#include "ash/common/wm_shell.h"
#include "ash/content/shell_content_state.h"
#include "ash/resources/grit/ash_resources.h"
@@ -27,9 +26,7 @@ bool CanShowWindowForUser(
aura::Window* window,
const GetActiveBrowserContextCallback& get_context_callback) {
DCHECK(window);
- ash::SessionStateDelegate* delegate =
- ash::WmShell::Get()->GetSessionStateDelegate();
- if (delegate->NumberOfLoggedInUsers() > 1) {
+ if (user_manager::UserManager::Get()->GetLoggedInUsers().size() > 1u) {
content::BrowserContext* active_browser_context =
get_context_callback.Run();
ash::ShellContentState* state = ash::ShellContentState::GetInstance();
« no previous file with comments | « chrome/browser/ui/ash/session_controller_client.cc ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698