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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2416253004: ash: Use session_manager::SessionState (Closed)
Patch Set: add comment about session state in SessionStaetDelegateChromeos 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 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 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 5 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 true); 1129 true);
1130 SAMLOfflineSigninLimiter* saml_offline_signin_limiter = 1130 SAMLOfflineSigninLimiter* saml_offline_signin_limiter =
1131 SAMLOfflineSigninLimiterFactory::GetForProfile(profile); 1131 SAMLOfflineSigninLimiterFactory::GetForProfile(profile);
1132 if (saml_offline_signin_limiter) 1132 if (saml_offline_signin_limiter)
1133 saml_offline_signin_limiter->SignedIn(user_context_.GetAuthFlow()); 1133 saml_offline_signin_limiter->SignedIn(user_context_.GetAuthFlow());
1134 } 1134 }
1135 1135
1136 profile->OnLogin(); 1136 profile->OnLogin();
1137 1137
1138 g_browser_process->platform_part()->SessionManager()->SetSessionState( 1138 g_browser_process->platform_part()->SessionManager()->SetSessionState(
1139 session_manager::SESSION_STATE_LOGGED_IN_NOT_ACTIVE); 1139 session_manager::SessionState::LOGGED_IN_NOT_ACTIVE);
1140 1140
1141 // Send the notification before creating the browser so additional objects 1141 // Send the notification before creating the browser so additional objects
1142 // that need the profile (e.g. the launcher) can be created first. 1142 // that need the profile (e.g. the launcher) can be created first.
1143 content::NotificationService::current()->Notify( 1143 content::NotificationService::current()->Notify(
1144 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 1144 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
1145 content::NotificationService::AllSources(), 1145 content::NotificationService::AllSources(),
1146 content::Details<Profile>(profile)); 1146 content::Details<Profile>(profile));
1147 1147
1148 // Initialize various services only for primary user. 1148 // Initialize various services only for primary user.
1149 const user_manager::User* user = 1149 const user_manager::User* user =
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 ->browser_policy_connector_chromeos() 1883 ->browser_policy_connector_chromeos()
1884 ->IsEnterpriseManaged()) { 1884 ->IsEnterpriseManaged()) {
1885 return false; 1885 return false;
1886 } 1886 }
1887 1887
1888 // Do not show end of life notification if this is a guest session 1888 // Do not show end of life notification if this is a guest session
1889 return !profile->IsGuestSession(); 1889 return !profile->IsGuestSession();
1890 } 1890 }
1891 1891
1892 } // namespace chromeos 1892 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698