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

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

Issue 2615663002: Fix MediaClient::RequestCaptureState(). (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/chrome_shell_content_state.cc ('k') | chrome/browser/ui/ash/media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b91781733157b4136ffa0eccbaad20ce466927e1..e9ea95b242c081b3e6b1e71cf8beefb996544acd 100644
--- a/chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc
+++ b/chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc
@@ -4,8 +4,6 @@
#include "chrome/browser/ui/ash/chrome_shell_content_state.h"
-#include "ash/common/session/session_state_delegate.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"
@@ -15,9 +13,8 @@
content::BrowserContext* ChromeShellContentState::GetBrowserContextByIndex(
ash::UserIndex index) {
- ash::SessionStateDelegate* session_state_delegate =
- ash::WmShell::Get()->GetSessionStateDelegate();
- DCHECK_LT(index, session_state_delegate->NumberOfLoggedInUsers());
+ DCHECK_LT(static_cast<size_t>(index),
+ user_manager::UserManager::Get()->GetLoggedInUsers().size());
user_manager::User* user =
user_manager::UserManager::Get()->GetLRULoggedInUsers()[index];
CHECK(user);
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_content_state.cc ('k') | chrome/browser/ui/ash/media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698