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

Unified Diff: chrome/browser/memory/tab_manager.cc

Issue 2661283002: cros: Clean up SessionStateDelegate refs in Chrome (Closed)
Patch Set: update browser_finder_chromeos_unittest Created 3 years, 10 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/chromeos/login/ui/user_adding_screen_browsertest.cc ('k') | chrome/browser/ui/ash/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/tab_manager.cc
diff --git a/chrome/browser/memory/tab_manager.cc b/chrome/browser/memory/tab_manager.cc
index 959ebdcdaefb72159122a6bb1babe1247113d23f..b689350325b807a0276cac709e4e4fa3d2054980 100644
--- a/chrome/browser/memory/tab_manager.cc
+++ b/chrome/browser/memory/tab_manager.cc
@@ -56,9 +56,9 @@
#if defined(OS_CHROMEOS)
#include "ash/common/multi_profile_uma.h"
-#include "ash/common/session/session_state_delegate.h"
#include "ash/common/wm_shell.h"
#include "chrome/browser/memory/tab_manager_delegate_chromeos.h"
+#include "components/user_manager/user_manager.h"
#endif
using base::TimeDelta;
@@ -567,9 +567,8 @@ void TabManager::RecordDiscardStatistics() {
// Record the discarded tab in relation to the amount of simultaneously
// logged in users.
if (ash::WmShell::HasInstance()) {
- ash::MultiProfileUMA::RecordDiscardedTab(ash::WmShell::Get()
- ->GetSessionStateDelegate()
- ->NumberOfLoggedInUsers());
+ ash::MultiProfileUMA::RecordDiscardedTab(
+ user_manager::UserManager::Get()->GetLoggedInUsers().size());
}
#endif
// TODO(jamescook): If the time stats prove too noisy, then divide up users
« no previous file with comments | « chrome/browser/chromeos/login/ui/user_adding_screen_browsertest.cc ('k') | chrome/browser/ui/ash/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698