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

Unified Diff: components/user_manager/user.h

Issue 1266563002: Added affiliation IDs for the new affiliation determination. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « components/policy/proto/device_management_backend.proto ('k') | components/user_manager/user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user.h
diff --git a/components/user_manager/user.h b/components/user_manager/user.h
index a0b2c2742a2f2d806843ea92969d6f561a748d91..d961acf316a53428c1a40815dacb8dde0ab569cd 100644
--- a/components/user_manager/user.h
+++ b/components/user_manager/user.h
@@ -165,6 +165,9 @@ class USER_MANAGER_EXPORT User : public UserInfo {
// True if the user Profile is created.
bool is_profile_created() const { return profile_is_created_; }
+ // True if the user is affiliated to the device.
+ bool is_affiliated() const { return is_affiliated_; }
+
protected:
friend class UserManagerBase;
friend class chromeos::ChromeUserManagerImpl;
@@ -243,6 +246,10 @@ class USER_MANAGER_EXPORT User : public UserInfo {
// True if user has google account (not a guest or managed user).
bool has_gaia_account() const;
+ void set_affiliation(bool is_affiliated) {
+ is_affiliated_ = is_affiliated;
+ }
+
private:
std::string email_;
base::string16 display_name_;
@@ -285,6 +292,9 @@ class USER_MANAGER_EXPORT User : public UserInfo {
// True if user Profile is created
bool profile_is_created_;
+ // True if the user is affiliated to the device.
+ bool is_affiliated_;
+
DISALLOW_COPY_AND_ASSIGN(User);
};
« no previous file with comments | « components/policy/proto/device_management_backend.proto ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698