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

Unified Diff: chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service_factory.h

Issue 2496903003: arc: Add Arc Kiosk app service and ability to launch kiosk apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_comp_parse
Patch Set: Remove unnecessary null check. Created 4 years, 1 month 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/arc/arc_kiosk_app_service_factory.h
diff --git a/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service_factory.h b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..e9a0a4a59640738ae8cf8b43fb4edd18ef3dcc73
--- /dev/null
+++ b/chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_service_factory.h
@@ -0,0 +1,41 @@
+// 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_SERVICE_FACTORY_H_
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+namespace chromeos {
+
+class ArcKioskAppService;
+
+// Singleton that owns all ArcKioskAppServices and associates them with
+// Profiles. Listens for the Profile's destruction notification and cleans up
+// the associated ArcKioskAppService.
+class ArcKioskAppServiceFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ static ArcKioskAppService* GetForBrowserContext(
+ content::BrowserContext* context);
+
+ static ArcKioskAppServiceFactory* GetInstance();
+
+ private:
+ friend struct base::DefaultSingletonTraits<ArcKioskAppServiceFactory>;
+
+ ArcKioskAppServiceFactory();
+ ~ArcKioskAppServiceFactory() override;
+
+ // BrowserContextKeyedServiceFactory overrides.
+ KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* context) const override;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcKioskAppServiceFactory);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_APP_MODE_ARC_ARC_KIOSK_APP_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698