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 e6014c4040c1ee298f338549d729315af193af16..0d18b94f7e74acbf44728beb77fe0e629ef187f1 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,8 +230,9 @@ 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::GetForProfile(profile) |
- : nullptr; |
+ profile |
+ ? OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile) |
+ : nullptr; |
if (service && service->HandlesSetting(pref_name)) |
service->Set(pref_name, *value); |
else |