}
void AppListServiceImpl::SetProfilePath(const base::FilePath& profile_path) {
- // Ensure we don't set the pref to a supervised user's profile path.
- // TODO(calamity): Filter out supervised profiles from the settings app so
- // this can't get hit, so we can remove it.
- if (profile_store_->IsProfileSupervised(profile_path))
- return;
-
local_state_->SetString(
prefs::kAppListProfile,
profile_path.BaseName().MaybeAsASCII());