| Index: chrome/browser/chromeos/login/users/multi_profile_user_controller.cc
|
| diff --git a/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc b/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc
|
| index 09b79b98b5d69b02caebd4ebd50e45b9a1828fbf..787e73e62ceaa573f9bfb60df3df22ed4ce54ebf 100644
|
| --- a/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc
|
| +++ b/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc
|
| @@ -127,6 +127,20 @@ MultiProfileUserController::GetPrimaryUserPolicy() {
|
| return ALLOWED;
|
| }
|
|
|
| +// static
|
| +MultiProfileUserController::MultiProfileUserBehavior
|
| +MultiProfileUserController::UserBehaviorStringToEnum(
|
| + const std::string& behavior) {
|
| + if (behavior == kBehaviorPrimaryOnly)
|
| + return MultiProfileUserBehavior::kPrimaryOnly;
|
| + if (behavior == kBehaviorNotAllowed)
|
| + return MultiProfileUserBehavior::kNotAllowed;
|
| + if (behavior == kBehaviorOwnerPrimaryOnly)
|
| + return MultiProfileUserBehavior::kOwnerPrimaryOnly;
|
| +
|
| + return MultiProfileUserBehavior::kUnrestriced;
|
| +}
|
| +
|
| bool MultiProfileUserController::IsUserAllowedInSession(
|
| const std::string& user_email,
|
| MultiProfileUserController::UserAllowedInSessionReason* reason) const {
|
|
|