| Index: chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| index 4535febeb19056285f834372aae6a8bf34ca3007..0dc8c6110dae4579fa14b1cd66cacbc7b63baf8f 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
| @@ -155,7 +155,7 @@ base::Value* CoreChromeOSOptionsHandler::FetchPref(
|
| if (connector->IsEnterpriseManaged())
|
| dict->SetString("controlledBy", "policy");
|
| bool disabled_by_owner = IsSettingOwnerOnly(pref_name) &&
|
| - !UserManager::Get()->IsCurrentUserOwner();
|
| + !ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui()));
|
| dict->SetBoolean("disabled", disabled_by_owner);
|
| if (disabled_by_owner)
|
| dict->SetString("controlledBy", "owner");
|
| @@ -214,7 +214,8 @@ void CoreChromeOSOptionsHandler::GetLocalizedValues(
|
| DCHECK(localized_strings);
|
| CoreOptionsHandler::GetLocalizedValues(localized_strings);
|
|
|
| - AddAccountUITweaksLocalizedValues(localized_strings);
|
| + AddAccountUITweaksLocalizedValues(localized_strings,
|
| + Profile::FromWebUI(web_ui()));
|
| localized_strings->SetString("controlledSettingOwner",
|
| l10n_util::GetStringUTF16(IDS_OPTIONS_CONTROLLED_SETTING_OWNER));
|
| }
|
|
|