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

Unified Diff: ash/metrics/user_metrics_recorder.cc

Issue 2058173002: mash: Move SystemTrayDelegate ownership to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback 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: ash/metrics/user_metrics_recorder.cc
diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc
index 6663aed64265a6f8463de0ff38ae08a54b6e7e92..2d090b6af4ba7740abf1c10809ef0d5b851e4698 100644
--- a/ash/metrics/user_metrics_recorder.cc
+++ b/ash/metrics/user_metrics_recorder.cc
@@ -11,6 +11,7 @@
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_user_metrics_action.h"
+#include "ash/common/wm_shell.h"
#include "ash/metrics/desktop_task_switch_metric_recorder.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_delegate.h"
@@ -73,14 +74,14 @@ ActiveWindowStateType GetActiveWindowState() {
// Returns true if kiosk mode is active.
bool IsKioskModeActive() {
- return Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus() ==
+ return WmShell::Get()->system_tray_delegate()->GetUserLoginStatus() ==
LoginStatus::KIOSK_APP;
}
// Returns true if there is an active user and their session isn't currently
// locked.
bool IsUserActive() {
- switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) {
+ switch (WmShell::Get()->system_tray_delegate()->GetUserLoginStatus()) {
case LoginStatus::NOT_LOGGED_IN:
case LoginStatus::LOCKED:
return false;

Powered by Google App Engine
This is Rietveld 408576698