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

Unified Diff: chrome/browser/chromeos/system/ash_system_tray_delegate.cc

Issue 23684033: Fix device policy recovery on CrOS login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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/system/ash_system_tray_delegate.cc
diff --git a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
index 5d05eefb8ed61848a2fa485d0ef224f202c55615..21e4cb77c98956100556f2466594377d5bf9a3fb 100644
--- a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
+++ b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
@@ -462,12 +462,11 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
}
virtual ash::user::LoginStatus GetUserLoginStatus() const OVERRIDE {
- // Map ChromeOS specific LOGGED_IN states to Ash LOGGED_IN states.
- LoginState::LoggedInState state = LoginState::Get()->GetLoggedInState();
- if (state == LoginState::LOGGED_IN_OOBE ||
- state == LoginState::LOGGED_IN_NONE) {
+ // All non-logged in ChromeOS specific LOGGED_IN states map to the same
+ // Ash specific LOGGED_IN state.
+ if (!LoginState::Get()->IsUserLoggedIn())
return ash::user::LOGGED_IN_NONE;
- }
+
if (screen_locked_)
return ash::user::LOGGED_IN_LOCKED;
@@ -497,7 +496,7 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
virtual bool IsOobeCompleted() const OVERRIDE {
if (!base::chromeos::IsRunningOnChromeOS() &&
- LoginState::Get()->GetLoggedInState() == LoginState::LOGGED_IN_ACTIVE)
+ LoginState::Get()->IsUserLoggedIn())
return true;
return StartupUtils::IsOobeCompleted();
}

Powered by Google App Engine
This is Rietveld 408576698