| Index: chrome/browser/chromeos/login/session/user_session_manager.cc
|
| diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
|
| index 07bfdbd19efa59d77e00b2f4e27486649a138248..fe36459da74bf4b50fcb081af976f9b9410c071e 100644
|
| --- a/chrome/browser/chromeos/login/session/user_session_manager.cc
|
| +++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
|
| @@ -593,13 +593,13 @@ void UserSessionManager::InitProfilePreferences(Profile* profile,
|
| if (UserManager::Get()->IsCurrentUserNew())
|
| SetFirstLoginPrefs(profile->GetPrefs());
|
|
|
| - if (UserManager::Get()->IsLoggedInAsLocallyManagedUser()) {
|
| + if (UserManager::Get()->IsLoggedInAsSupervisedUser()) {
|
| User* active_user = UserManager::Get()->GetActiveUser();
|
| - std::string managed_user_sync_id =
|
| + std::string supervised_user_sync_id =
|
| UserManager::Get()->GetSupervisedUserManager()->
|
| GetUserSyncId(active_user->email());
|
| profile->GetPrefs()->SetString(prefs::kSupervisedUserId,
|
| - managed_user_sync_id);
|
| + supervised_user_sync_id);
|
| } else if (UserManager::Get()->IsLoggedInAsRegularUser()) {
|
| // Make sure that the google service username is properly set (we do this
|
| // on every sign in, not just the first login, to deal with existing
|
|
|