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

Unified Diff: chrome/browser/chromeos/login/user.h

Issue 14139003: Chrome OS multi-profiles backend and UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move IsMultiProfilesEnabled() out of cros Created 7 years, 8 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/chromeos/login/oauth2_login_manager.cc ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user.h
diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h
index 2a924eeafb5fd8cceba3399a4c2acafa2860d50c..a9119b0fdd0c20f195f8bbdd7b471ab7ba0450f9 100644
--- a/chrome/browser/chromeos/login/user.h
+++ b/chrome/browser/chromeos/login/user.h
@@ -157,6 +157,12 @@ class User {
virtual std::string username_hash() const;
+ // True if current user is logged in.
+ virtual bool is_logged_in() const;
+
+ // True if current user is active within the current session.
+ virtual bool is_active() const;
+
protected:
friend class UserManagerImpl;
friend class UserImageManagerImpl;
@@ -202,6 +208,14 @@ class User {
username_hash_ = username_hash;
}
+ void set_is_logged_in(bool is_logged_in) {
+ is_logged_in_ = is_logged_in;
+ }
+
+ void set_is_active(bool is_active) {
+ is_active_ = is_active;
+ }
+
private:
std::string email_;
string16 display_name_;
@@ -223,6 +237,12 @@ class User {
// True if current user image is being loaded from file.
bool image_is_loading_;
+ // True if user is currently logged in in current session.
+ bool is_logged_in_;
+
+ // True if user is currently logged in and active in current session.
+ bool is_active_;
+
DISALLOW_COPY_AND_ASSIGN(User);
};
« no previous file with comments | « chrome/browser/chromeos/login/oauth2_login_manager.cc ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698