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

Side by Side Diff: chrome/browser/chromeos/login/session/chrome_session_manager.h

Issue 2444383008: session_manager: Create ChromeSessionManager early (Closed)
Patch Set: for #4 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 unified diff | Download patch
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_SESSION_CHROME_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/session_manager/core/session_manager.h" 9 #include "components/session_manager/core/session_manager.h"
10 10
11 namespace base { 11 namespace base {
12 class CommandLine; 12 class CommandLine;
13 } 13 }
14 14
15 class Profile; 15 class Profile;
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 class ChromeSessionManager : public session_manager::SessionManager { 19 class ChromeSessionManager : public session_manager::SessionManager {
20 public: 20 public:
21 static std::unique_ptr<session_manager::SessionManager> CreateSessionManager( 21 ChromeSessionManager();
22 const base::CommandLine& parsed_command_line, 22 ~ChromeSessionManager() override;
23 Profile* profile,
24 bool is_running_test);
25 23
26 private: 24 // Initialize session manager on browser starts up. Runs different code
27 explicit ChromeSessionManager( 25 // path based on command line flags and policy. Possible scenarios include:
28 session_manager::SessionManagerDelegate* delegate); 26 // - Launches pre-session UI such as out-of-box or login;
29 ~ChromeSessionManager() override; 27 // - Launches the auto launched kiosk app;
28 // - Resumes user sessions on crash-and-restart;
29 // - Starts a stub login session for dev or test;
30 void Initialize(const base::CommandLine& parsed_command_line,
31 Profile* profile,
32 bool is_running_test);
30 33
31 // session_manager::SessionManager: 34 // session_manager::SessionManager:
32 void SessionStarted() override; 35 void SessionStarted() override;
33 36
37 private:
34 DISALLOW_COPY_AND_ASSIGN(ChromeSessionManager); 38 DISALLOW_COPY_AND_ASSIGN(ChromeSessionManager);
35 }; 39 };
36 40
37 } // namespace chromeos 41 } // namespace chromeos
38 42
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_ 43 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_CHROME_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698