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

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 c3fe71f26358a98dd765ca2da0146368fa14e05d..4105e2c9e7dc184dd2e3260c9c56ebbbb1e5b0e0 100644
--- a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
+++ b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
@@ -469,12 +469,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;
@@ -504,7 +503,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();
}
@@ -1080,8 +1079,7 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
}
// LoginState::Observer overrides.
- virtual void LoggedInStateChanged(
- chromeos::LoginState::LoggedInState state) OVERRIDE {
+ virtual void LoggedInStateChanged() OVERRIDE {
UpdateClockType();
}

Powered by Google App Engine
This is Rietveld 408576698