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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

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
Index: chrome/browser/chromeos/login/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index 5ec314825416760301fcf9768160eefbb0d5697b..c8a3dae353e4d6f70f5b2511fc4d31debd597e73 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -1136,7 +1136,7 @@ void UserSessionManager::FinalizePrepareProfile(Profile* profile) {
profile->OnLogin();
- g_browser_process->platform_part()->SessionManager()->SetSessionState(
+ session_manager::SessionManager::Get()->SetSessionState(
session_manager::SessionState::LOGGED_IN_NOT_ACTIVE);
// Send the notification before creating the browser so additional objects
@@ -1742,7 +1742,7 @@ void UserSessionManager::DoBrowserLaunchInternal(Profile* profile,
// browser before it is dereferenced by the login host.
if (login_host)
login_host->Finalize();
- g_browser_process->platform_part()->SessionManager()->SessionStarted();
+ session_manager::SessionManager::Get()->SessionStarted();
chromeos::BootTimesRecorder::Get()->LoginDone(
user_manager::UserManager::Get()->IsCurrentUserNew());

Powered by Google App Engine
This is Rietveld 408576698