Commit 50bc61d4 authored by csilv@chromium.org's avatar csilv@chromium.org

dom-ui settings: save UI language state in local_state, not profile.

BUG=70351
TEST=Verify language change works on windows/linux.
Review URL: http://codereview.chromium.org/6324009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72237 0039d316-1c4b-4281-b951-d872f2087c98
parent f0718a39
......@@ -385,8 +385,8 @@ void LanguageOptionsHandler::UiLanguageChangeCallback(
#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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment