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

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

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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: chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc b/chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc
index 3e3e92d55813820af3efc3fe753c07ccec60ce8c..4e72c8b26a62dfc5a00039bb33695dd1cfa8b942 100644
--- a/chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc
+++ b/chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/ui/ash/chrome_shell_content_state.h"
#include "ash/common/session/session_state_delegate.h"
-#include "ash/shell.h"
+#include "ash/common/wm_shell.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
#include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
@@ -16,7 +16,7 @@
content::BrowserContext* ChromeShellContentState::GetBrowserContextByIndex(
ash::UserIndex index) {
ash::SessionStateDelegate* session_state_delegate =
- ash::Shell::GetInstance()->session_state_delegate();
+ ash::WmShell::Get()->GetSessionStateDelegate();
DCHECK_LT(index, session_state_delegate->NumberOfLoggedInUsers());
user_manager::User* user =
user_manager::UserManager::Get()->GetLRULoggedInUsers()[index];

Powered by Google App Engine
This is Rietveld 408576698