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

Unified Diff: chrome/browser/browser_process_platform_part_chromeos.h

Issue 2444383008: session_manager: Create ChromeSessionManager early (Closed)
Patch Set: for #4 Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/browser_process_platform_part_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_platform_part_chromeos.h
diff --git a/chrome/browser/browser_process_platform_part_chromeos.h b/chrome/browser/browser_process_platform_part_chromeos.h
index 7630b83ea77b4c2c57641540c1c8067727cafde3..675e57c95c91677755acb36c1c5612fd9efd2f63 100644
--- a/chrome/browser/browser_process_platform_part_chromeos.h
+++ b/chrome/browser/browser_process_platform_part_chromeos.h
@@ -12,11 +12,8 @@
#include "base/threading/non_thread_safe.h"
#include "chrome/browser/browser_process_platform_part_base.h"
-namespace base {
-class CommandLine;
-}
-
namespace chromeos {
+class ChromeSessionManager;
class ChromeUserManager;
class ProfileHelper;
class TimeZoneResolver;
@@ -37,11 +34,6 @@ class BrowserPolicyConnector;
class BrowserPolicyConnectorChromeOS;
}
-namespace session_manager {
-class SessionManager;
-}
-
-class Profile;
class ScopedKeepAlive;
class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
@@ -59,20 +51,13 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
void InitializeDeviceDisablingManager();
void ShutdownDeviceDisablingManager();
- void InitializeSessionManager(const base::CommandLine& parsed_command_line,
- Profile* profile,
- bool is_running_test);
+ void InitializeSessionManager();
void ShutdownSessionManager();
// Disable the offline interstitial easter egg if the device is enterprise
// enrolled.
void DisableDinoEasterEggIfEnrolled();
- // Returns the SessionManager instance that is used to initialize and
- // start user sessions as well as responsible on launching pre-session UI like
- // out-of-box or login.
- virtual session_manager::SessionManager* SessionManager();
-
// Used to register a KeepAlive when Ash is initialized, and release it
// when until Chrome starts exiting. Ensure we stay running the whole time.
void RegisterKeepAlive();
@@ -88,6 +73,10 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
policy::BrowserPolicyConnectorChromeOS* browser_policy_connector_chromeos();
+ chromeos::ChromeSessionManager* session_manager() {
+ return session_manager_.get();
+ }
+
chromeos::ChromeUserManager* user_manager() {
return chrome_user_manager_.get();
}
@@ -112,7 +101,7 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
private:
void CreateProfileHelper();
- std::unique_ptr<session_manager::SessionManager> session_manager_;
+ std::unique_ptr<chromeos::ChromeSessionManager> session_manager_;
bool created_profile_helper_;
std::unique_ptr<chromeos::ProfileHelper> profile_helper_;
« no previous file with comments | « no previous file | chrome/browser/browser_process_platform_part_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698