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

Unified Diff: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h

Issue 156493004: Add the ability to show a demo app on OOBE if a machine is derelict. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/login/demo_mode/demo_app_launcher.h
diff --git a/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..baf4a744e5643a0ce289d324abe78041103d6a70
--- /dev/null
+++ b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
Lei Zhang 2014/02/11 22:13:59 2014
rkc 2014/02/11 22:37:38 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
+
+#include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h"
+
+class Profile;
+
+namespace chromeos {
+
+// Class responsible for launching the demo app under a kiosk session.
+class DemoAppLauncher : public KioskProfileLoader::Delegate {
+ public:
+ DemoAppLauncher();
+ virtual ~DemoAppLauncher();
+
+ void StartDemoAppLaunch();
+
+ private:
+ // KioskProfileLoader::Delegate overrides:
+ virtual void OnProfileLoaded(Profile* profile) OVERRIDE;
+ virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE;
+
+ Profile* profile_;
+ scoped_ptr<KioskProfileLoader> kiosk_profile_loader_;
Lei Zhang 2014/02/11 22:13:59 #include "base/memory/scoped_ptr.h"
rkc 2014/02/11 22:37:38 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_

Powered by Google App Engine
This is Rietveld 408576698