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

Unified Diff: ash/system/chromeos/session/last_window_closed_logout_reminder.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/system/chromeos/session/last_window_closed_logout_reminder.cc
diff --git a/ash/system/chromeos/session/last_window_closed_logout_reminder.cc b/ash/system/chromeos/session/last_window_closed_logout_reminder.cc
index 98da9e928124957b900a15f5244017ab60ebc6ab..709e691921f82fdb8c837e86bf45cd41e2a2fd9a 100644
--- a/ash/system/chromeos/session/last_window_closed_logout_reminder.cc
+++ b/ash/system/chromeos/session/last_window_closed_logout_reminder.cc
@@ -5,6 +5,7 @@
#include "ash/system/chromeos/session/last_window_closed_logout_reminder.h"
#include "ash/common/system/tray/system_tray_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/system/chromeos/session/logout_confirmation_controller.h"
#include "ash/system/tray/system_tray_notifier.h"
@@ -27,7 +28,7 @@ LastWindowClosedLogoutReminder::~LastWindowClosedLogoutReminder() {
}
void LastWindowClosedLogoutReminder::OnLastWindowClosed() {
- if (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus() !=
+ if (WmShell::Get()->system_tray_delegate()->GetUserLoginStatus() !=
LoginStatus::PUBLIC) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698