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

Unified Diff: chrome/browser/chromeos/login/users/multi_profile_user_controller.h

Issue 374853002: Providing more information on why certain users can't be added to multi-profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests. 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
Index: chrome/browser/chromeos/login/users/multi_profile_user_controller.h
diff --git a/chrome/browser/chromeos/login/users/multi_profile_user_controller.h b/chrome/browser/chromeos/login/users/multi_profile_user_controller.h
index 628a9556212071eaeff7e8ba0391e71281003af4..506794f9d8c780bb7fb9c2f7ecbb65ce1617d15c 100644
--- a/chrome/browser/chromeos/login/users/multi_profile_user_controller.h
+++ b/chrome/browser/chromeos/login/users/multi_profile_user_controller.h
@@ -65,6 +65,11 @@ class MultiProfileUserController {
// Returns the cached policy value for |user_email|.
std::string GetCachedValue(const std::string& user_email) const;
+ // Returns primary user policy (only ALLOW,
+ // NOT_ALLOWED_PRIMARY_POLICY_CERT_TAINTED,
+ // NOT_ALLOWED_PRIMARY_USER_POLICY_FORBIDS)
+ static UserAllowedInSessionReason GetPrimaryUserPolicy();
+
// Returns true if user allowed to be in the current session. If |reason| not
// null stores UserAllowedInSessionReason enum that describes actual reason.
bool IsUserAllowedInSession(const std::string& user_email,

Powered by Google App Engine
This is Rietveld 408576698