blob: c89b322fcd33e2cdf4b31ff006e669ae80fba84a [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// 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/chromeos/app_mode/kiosk_app_manager.h"
namespace extensions {
ChromeKioskDelegate::ChromeKioskDelegate() {}
ChromeKioskDelegate::~ChromeKioskDelegate() {}
bool ChromeKioskDelegate::IsAutoLaunchedKioskApp(const ExtensionId& id) const {
chromeos::KioskAppManager::App app_info;
return chromeos::KioskAppManager::Get()->GetApp(id, &app_info) &&
app_info.was_auto_launched_with_zero_delay;
}
} // namespace extensions