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

Unified Diff: ash/system/overview/overview_button_tray.cc

Issue 2864663002: cros: Merge SystemTrayDelegate::GetUserLoginStatus (Closed)
Patch Set: Created 3 years, 7 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/overview/overview_button_tray.cc
diff --git a/ash/system/overview/overview_button_tray.cc b/ash/system/overview/overview_button_tray.cc
index 331f445cce85281223718ca4b30916897b308988..b61f55cc4c1138092ece8134fb641d17b2f3c338 100644
--- a/ash/system/overview/overview_button_tray.cc
+++ b/ash/system/overview/overview_button_tray.cc
@@ -10,7 +10,6 @@
#include "ash/shell.h"
#include "ash/shell_port.h"
#include "ash/strings/grit/ash_strings.h"
-#include "ash/system/tray/system_tray_delegate.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_container.h"
#include "ash/wm/maximize_mode/maximize_mode_controller.h"
@@ -107,10 +106,8 @@ void OverviewButtonTray::UpdateIconVisibility() {
!session_controller->IsScreenLocked() &&
session_controller->GetSessionState() ==
session_manager::SessionState::ACTIVE &&
- shell->system_tray_delegate()->GetUserLoginStatus() !=
- LoginStatus::KIOSK_APP &&
- shell->system_tray_delegate()->GetUserLoginStatus() !=
- LoginStatus::ARC_KIOSK_APP);
+ session_controller->login_status() != LoginStatus::KIOSK_APP &&
James Cook 2017/05/05 17:51:53 optional: WDYT of adding either SessionController:
xiyuan 2017/05/05 18:36:33 Added a SessionController::IsKioskSession() and up
+ session_controller->login_status() != LoginStatus::ARC_KIOSK_APP);
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698