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

Unified Diff: chrome/browser/dom_ui/options/language_options_handler.cc

Issue 6324009: dom-ui settings: save UI language state in local_state, not profile.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/language_options_handler.cc
===================================================================
--- chrome/browser/dom_ui/options/language_options_handler.cc (revision 72211)
+++ chrome/browser/dom_ui/options/language_options_handler.cc (working copy)
@@ -385,8 +385,8 @@
#if defined(OS_CHROMEOS)
dom_ui_->GetProfile()->ChangeApplicationLocale(language_code, false);
#else
- PrefService* prefs = dom_ui_->GetProfile()->GetPrefs();
- prefs->SetString(prefs::kApplicationLocale, language_code);
+ PrefService* pref_service = g_browser_process->local_state();
+ pref_service->SetString(prefs::kApplicationLocale, language_code);
#endif // defined(OS_CHROMEOS)
dom_ui_->CallJavascriptFunction(
L"options.LanguageOptions.uiLanguageSaved");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698