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

Side by Side Diff: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h

Issue 256633002: cros: Fix demo app could bring up CCD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 DemoAppLauncher(); 24 DemoAppLauncher();
25 virtual ~DemoAppLauncher(); 25 virtual ~DemoAppLauncher();
26 26
27 void StartDemoAppLaunch(); 27 void StartDemoAppLaunch();
28 28
29 static bool IsDemoAppSession(const std::string& user_id); 29 static bool IsDemoAppSession(const std::string& user_id);
30 static void SetDemoAppPathForTesting(const base::FilePath& path); 30 static void SetDemoAppPathForTesting(const base::FilePath& path);
31 31
32 static const char kDemoUserName[]; 32 static const char kDemoUserName[];
33 static const char kDemoAppId[];
33 34
34 private: 35 private:
35 friend class DemoAppLauncherTest; 36 friend class DemoAppLauncherTest;
36 37
37 // KioskProfileLoader::Delegate overrides: 38 // KioskProfileLoader::Delegate overrides:
38 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; 39 virtual void OnProfileLoaded(Profile* profile) OVERRIDE;
39 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; 40 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE;
40 41
41 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; 42 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_;
42 43
43 static base::FilePath* demo_app_path_; 44 static base::FilePath* demo_app_path_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher); 46 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher);
46 }; 47 };
47 48
48 } // namespace chromeos 49 } // namespace chromeos
49 50
50 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/demo_mode/demo_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698