Chromium Code Reviews| Index: chrome/browser/chromeos/app_mode/chrome_kiosk_delegate.cc |
| diff --git a/chrome/browser/chromeos/app_mode/chrome_kiosk_delegate.cc b/chrome/browser/chromeos/app_mode/chrome_kiosk_delegate.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c24f3156fc81e45d419d15bef5cc4972e336940a |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/app_mode/chrome_kiosk_delegate.cc |
| @@ -0,0 +1,27 @@ |
| +// 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/chromeos/app_mode/chrome_kiosk_delegate.h" |
| + |
| +#if defined(OS_CHROMEOS) |
| +#include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| +#endif |
| + |
| +namespace extensions { |
| + |
| +ChromeKioskDelegate::ChromeKioskDelegate() {} |
| + |
| +ChromeKioskDelegate::~ChromeKioskDelegate() {} |
| + |
| +bool ChromeKioskDelegate::IsAutoLaunchedKioskApp(const ExtensionId& id) const { |
| +#if defined(OS_CHROMEOS) |
| + chromeos::KioskAppManager::App app_info; |
| + return chromeos::KioskAppManager::Get()->GetApp(id, &app_info) && |
| + app_info.was_auto_launched_with_zero_delay; |
| +#else |
| + return false; |
| +#endif |
|
asargent_no_longer_on_chrome
2016/09/28 19:58:15
Will all the eventual methods here be of the form:
Rahul Chaturvedi
2016/09/28 20:26:47
This also should not be in the //c/b/chromeos/...
|
| +} |
| + |
| +} // namespace extensions |