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

Unified Diff: chrome/browser/chromeos/login/users/chrome_user_manager_impl.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
Index: chrome/browser/chromeos/login/users/chrome_user_manager_impl.h
diff --git a/chrome/browser/chromeos/login/users/chrome_user_manager_impl.h b/chrome/browser/chromeos/login/users/chrome_user_manager_impl.h
index d7794917173bb3986d9a97dd90304bf1bd562d52..a0dc6e29e1c5d550e48dcf6c84006fdd8599e065 100644
--- a/chrome/browser/chromeos/login/users/chrome_user_manager_impl.h
+++ b/chrome/browser/chromeos/login/users/chrome_user_manager_impl.h
@@ -115,6 +115,11 @@ class ChromeUserManagerImpl
// UserManagerBase implementation:
bool AreEphemeralUsersEnabled() const override;
+ // ChromeUserManager implementation:
+ void SetUserAffiliation(
+ const std::string& user_id,
+ const std::set<std::string>& user_affiliation_ids) override;
+
protected:
const std::string& GetApplicationLocale() const override;
PrefService* GetLocalState() const override;
@@ -206,6 +211,20 @@ class ChromeUserManagerImpl
// depending on user preferences.
void UpdateUserTimeZoneRefresher(Profile* profile);
+ // Returns device affiliation IDs. These IDs are needed to determine if user
+ // is affiliated on the device.
+ std::set<std::string> GetDeviceAffiliationIDs() const;
+
+ // TODO(peletskyi): Remove this backwards compatibility function.
+ // Returns device enterprise domain. Needed for backwards compatibility
+ // until affiliation IDs are fully introduced.
+ std::string GetEnterpriseDomain() const;
+
+ // Returns true if user with |user_affiliation_ids| and |user_email| is
+ // affiliated on current device.
+ bool IsUserAffiliated(const std::set<std::string>& user_affiliation_ids,
+ const std::string& user_email) const;
+
// Interface to the signed settings store.
CrosSettings* cros_settings_;

Powered by Google App Engine
This is Rietveld 408576698