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

Unified Diff: chromeos/login/login_state.h

Issue 450363002: Simplify LoginState methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check that retail mode is not used. Created 6 years, 4 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
« no previous file with comments | « chrome/browser/metrics/perf_provider_chromeos.cc ('k') | chromeos/login/login_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/login_state.h
diff --git a/chromeos/login/login_state.h b/chromeos/login/login_state.h
index 7ab76663ccbb65a86f7ad0f350dbe8103286a642..1c30a3373fe889cf309fdedd0b2206502dcfdec7 100644
--- a/chromeos/login/login_state.h
+++ b/chromeos/login/login_state.h
@@ -26,7 +26,7 @@ class CHROMEOS_EXPORT LoginState {
LOGGED_IN_USER_OWNER, // The owner of the device is logged in
LOGGED_IN_USER_GUEST, // A guest is logged in (i.e. incognito)
LOGGED_IN_USER_RETAIL_MODE, // Is in retail mode
- LOGGED_IN_USER_PUBLIC_ACCOUNT, // A public account is logged in
+ LOGGED_IN_USER_PUBLIC_ACCOUNT, // A user is logged in to a public session.
LOGGED_IN_USER_SUPERVISED, // A supervised user is logged in
LOGGED_IN_USER_KIOSK_APP // Is in kiosk app mode
};
@@ -72,8 +72,11 @@ class CHROMEOS_EXPORT LoginState {
// logged in, and only the owner will be allowed to log in).
bool IsInSafeMode() const;
- // Returns true if logged in and is a guest, retail, or public user.
- bool IsGuestUser() const;
+ // Returns true if logged in to a guest session.
+ bool IsGuestSessionUser() const;
+
+ // Returns true if logged in to a public session.
+ bool IsPublicSessionUser() const;
// Returns true if logged in as a kiosk app.
bool IsKioskApp() const;
@@ -81,11 +84,12 @@ class CHROMEOS_EXPORT LoginState {
// Whether a network profile is created for the user.
bool UserHasNetworkProfile() const;
- // Returns true if the user is an authenticated user (i.e. non public account)
+ // Returns true if the user is an authenticated user (i.e. the user is not
+ // using an anonymous session like public or guest session)
bool IsUserAuthenticated() const;
// Returns true if the user is authenticated by logging into Google account
- // (i.e., non public nor supervised account).
+ // (i.e. not using an anonymous nor supervised session).
bool IsUserGaiaAuthenticated() const;
void set_always_logged_in(bool always_logged_in) {
« no previous file with comments | « chrome/browser/metrics/perf_provider_chromeos.cc ('k') | chromeos/login/login_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698