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

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

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)
Patch Set: reuse enum defined in mojom file. Created 3 years, 6 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.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 787e73e62ceaa573f9bfb60df3df22ed4ce54ebf..8e53e977fae8388856f0cabcbb674f563598477b 100644
--- a/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc
+++ b/chrome/browser/chromeos/login/users/multi_profile_user_controller.cc
@@ -128,17 +128,16 @@ MultiProfileUserController::GetPrimaryUserPolicy() {
}
// static
-MultiProfileUserController::MultiProfileUserBehavior
-MultiProfileUserController::UserBehaviorStringToEnum(
+MultiProfileUserBehavior MultiProfileUserController::UserBehaviorStringToEnum(
const std::string& behavior) {
if (behavior == kBehaviorPrimaryOnly)
- return MultiProfileUserBehavior::kPrimaryOnly;
+ return MultiProfileUserBehavior::PRIMARY_ONLY;
if (behavior == kBehaviorNotAllowed)
- return MultiProfileUserBehavior::kNotAllowed;
+ return MultiProfileUserBehavior::NOT_ALLOWED;
if (behavior == kBehaviorOwnerPrimaryOnly)
- return MultiProfileUserBehavior::kOwnerPrimaryOnly;
+ return MultiProfileUserBehavior::OWNER_PRIMARY_ONLY;
- return MultiProfileUserBehavior::kUnrestriced;
+ return MultiProfileUserBehavior::UNRESTRICTED;
}
bool MultiProfileUserController::IsUserAllowedInSession(

Powered by Google App Engine
This is Rietveld 408576698