Commit 95eae432 authored by Denis Kuznetsov's avatar Denis Kuznetsov Committed by Commit Bot

Followup for Enable CRD for ARC Kiosks

Bug: 885086
Change-Id: I1eb764626437c07008a0f44d4a7b0f47b05f931a
Reviewed-on: https://chromium-review.googlesource.com/1232093Reviewed-by: default avatarSergey Poromov <poromov@chromium.org>
Commit-Queue: Sergey Poromov <poromov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592164}
parent a3d8ac95
...@@ -148,7 +148,6 @@ bool CRDHostDelegate::AreServicesReady() const { ...@@ -148,7 +148,6 @@ bool CRDHostDelegate::AreServicesReady() const {
bool CRDHostDelegate::IsRunningKiosk() const { bool CRDHostDelegate::IsRunningKiosk() const {
auto* user_manager = user_manager::UserManager::Get(); auto* user_manager = user_manager::UserManager::Get();
// TODO(antrim): find out if Arc Kiosk is also eligible.
if (!user_manager->IsLoggedInAsKioskApp() && if (!user_manager->IsLoggedInAsKioskApp() &&
!user_manager->IsLoggedInAsArcKioskApp()) { !user_manager->IsLoggedInAsArcKioskApp()) {
return false; return false;
...@@ -164,10 +163,8 @@ bool CRDHostDelegate::IsRunningKiosk() const { ...@@ -164,10 +163,8 @@ bool CRDHostDelegate::IsRunningKiosk() const {
CHECK(manager->GetApp(manager->GetAutoLaunchApp(), &app)); CHECK(manager->GetApp(manager->GetAutoLaunchApp(), &app));
return app.was_auto_launched_with_zero_delay; return app.was_auto_launched_with_zero_delay;
} else { // ARC Kiosk } else { // ARC Kiosk
chromeos::ArcKioskAppManager* manager = chromeos::ArcKioskAppManager::Get(); return chromeos::ArcKioskAppManager::Get()
if (!manager->GetAutoLaunchAccountId().is_valid()) ->current_app_was_auto_launched_with_zero_delay();
return false;
return manager->current_app_was_auto_launched_with_zero_delay();
} }
} }
......
...@@ -64,7 +64,7 @@ class DeviceCommandStartCRDSessionJob : public RemoteCommandJob { ...@@ -64,7 +64,7 @@ class DeviceCommandStartCRDSessionJob : public RemoteCommandJob {
// Check if required system services are ready. // Check if required system services are ready.
virtual bool AreServicesReady() const = 0; virtual bool AreServicesReady() const = 0;
// Check if device is running in Kiosk mode. // Check if device is running an auto-launched Kiosk.
virtual bool IsRunningKiosk() const = 0; virtual bool IsRunningKiosk() const = 0;
// Return current user idleness period. // Return current user idleness period.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment