| 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 0d18b94f7e74acbf44728beb77fe0e629ef187f1..e6014c4040c1ee298f338549d729315af193af16 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
|
| @@ -230,9 +230,8 @@ void CoreChromeOSOptionsHandler::SetPref(const std::string& pref_name,
|
| return ::options::CoreOptionsHandler::SetPref(pref_name, value, metric);
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| OwnerSettingsServiceChromeOS* service =
|
| - profile
|
| - ? OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile)
|
| - : nullptr;
|
| + profile ? OwnerSettingsServiceChromeOSFactory::GetForProfile(profile)
|
| + : nullptr;
|
| if (service && service->HandlesSetting(pref_name))
|
| service->Set(pref_name, *value);
|
| else
|
|
|