OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h" | |
10 | |
11 class Profile; | |
12 | |
13 namespace chromeos { | |
14 | |
15 // Class responsible for launching the demo app under a kiosk session. | |
16 class DemoAppLauncher : public KioskProfileLoader::Delegate { | |
17 public: | |
18 DemoAppLauncher(); | |
19 virtual ~DemoAppLauncher(); | |
20 | |
21 void StartDemoAppLaunch(); | |
22 | |
23 static bool IsDemoAppSession(const std::string& user_id); | |
bartfab (slow)
2014/02/13 19:51:53
Nit: #include <string>
rkc
2014/02/13 23:22:01
Done.
| |
24 | |
25 private: | |
26 // KioskProfileLoader::Delegate overrides: | |
27 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; | |
bartfab (slow)
2014/02/13 19:51:53
Nit: #include "base/compiler_specific.h"
rkc
2014/02/13 23:22:01
Done.
rkc
2014/02/13 23:22:01
Done.
| |
28 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; | |
29 | |
30 Profile* profile_; | |
bartfab (slow)
2014/02/13 19:51:53
This member is unnecessary. |profile_| is only eve
rkc
2014/02/13 23:22:01
Done.
| |
31 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher); | |
bartfab (slow)
2014/02/13 19:51:53
Nit: #include "base/basictypes.h"
rkc
2014/02/13 23:22:01
Done.
| |
34 }; | |
35 | |
36 } // namespace chromeos | |
37 | |
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ | |
OLD | NEW |