blob: 32ab2e4d699fa31dea14f0e654f4d28b2005f95a [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/chrome_kiosk_delegate.h"
#include "chrome/browser/ash/app_mode/kiosk_app_manager.h"
namespace extensions {
ChromeKioskDelegate::ChromeKioskDelegate() {}
ChromeKioskDelegate::~ChromeKioskDelegate() {}
bool ChromeKioskDelegate::IsAutoLaunchedKioskApp(const ExtensionId& id) const {
if (!ash::KioskAppManager::IsInitialized()) {
return false;
}
ash::KioskAppManager::App app_info;
return ash::KioskAppManager::Get()->GetApp(id, &app_info) &&
app_info.was_auto_launched_with_zero_delay;
}
} // namespace extensions