Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3585)

Unified Diff: chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc

Issue 738843002: Call to CrosSettings::Set() is replaced by OwnerSettingsService::Set() in VersionUpdaterCros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698