Index: chrome/browser/ui/ash/session_state_delegate_chromeos.cc |
diff --git a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc |
index dafd512230d4893874b6b03e11b872e0231aeaac..eef792b2e163c6ce0c22c700faa0e020d6bd27a3 100644 |
--- a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc |
+++ b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc |
@@ -29,7 +29,8 @@ |
#include "google_apis/gaia/gaia_auth_util.h" |
SessionStateDelegateChromeos::SessionStateDelegateChromeos() |
- : session_state_(SESSION_STATE_LOGIN_PRIMARY) { |
+ : session_state_(SESSION_STATE_LOGIN_PRIMARY), |
+ is_in_supervised_creation_flow_(false) { |
user_manager::UserManager::Get()->AddSessionStateObserver(this); |
chromeos::UserAddingScreen::Get()->AddObserver(this); |
@@ -147,6 +148,15 @@ bool SessionStateDelegateChromeos::IsUserSessionBlocked() const { |
chromeos::UserAddingScreen::Get()->IsRunning(); |
} |
+bool SessionStateDelegateChromeos::IsInSupervisedUserCreationFlow() const { |
+ return is_in_supervised_creation_flow_; |
+} |
+ |
+void SessionStateDelegateChromeos::SetIsInSupervisedUserCreationFlow( |
+ bool is_in_flow) { |
+ is_in_supervised_creation_flow_ = is_in_flow; |
+} |
+ |
ash::SessionStateDelegate::SessionState |
SessionStateDelegateChromeos::GetSessionState() const { |
return session_state_; |