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

Unified Diff: chrome/browser/chromeos/app_mode/chrome_kiosk_delegate.cc

Issue 2370373002: Move chrome.bluetoothLowEnergy out of //chrome. (Closed)
Patch Set: Created 4 years, 3 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: 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

Powered by Google App Engine
This is Rietveld 408576698