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

Unified Diff: chrome/browser/memory/tab_manager.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/memory/tab_manager.cc
diff --git a/chrome/browser/memory/tab_manager.cc b/chrome/browser/memory/tab_manager.cc
index 90e8df34a46b5b58e8429535b2048d30a3e5547d..e7d7d39e62ceea7ba8e908cce78179705dcf93c8 100644
--- a/chrome/browser/memory/tab_manager.cc
+++ b/chrome/browser/memory/tab_manager.cc
@@ -54,8 +54,8 @@
#if defined(OS_CHROMEOS)
#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/multi_profile_uma.h"
-#include "ash/shell.h"
#include "chrome/browser/memory/tab_manager_delegate_chromeos.h"
#endif
@@ -384,9 +384,9 @@ void TabManager::RecordDiscardStatistics() {
#if defined(OS_CHROMEOS)
// Record the discarded tab in relation to the amount of simultaneously
// logged in users.
- if (ash::Shell::HasInstance()) {
- ash::MultiProfileUMA::RecordDiscardedTab(ash::Shell::GetInstance()
- ->session_state_delegate()
+ if (ash::WmShell::HasInstance()) {
+ ash::MultiProfileUMA::RecordDiscardedTab(ash::WmShell::Get()
+ ->GetSessionStateDelegate()
->NumberOfLoggedInUsers());
}
#endif

Powered by Google App Engine
This is Rietveld 408576698