diff options
author | csilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 23:55:21 +0000 |
---|---|---|
committer | csilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 23:55:21 +0000 |
commit | 50bc61d493a09234c736415d6f94752eec09e7c7 (patch) | |
tree | 33859c6d3196e63b70fb3713d2905322743480b4 /chrome | |
parent | f0718a39551eeb27269344a0cd9265addc41bc57 (diff) | |
download | chromium_src-50bc61d493a09234c736415d6f94752eec09e7c7.zip chromium_src-50bc61d493a09234c736415d6f94752eec09e7c7.tar.gz chromium_src-50bc61d493a09234c736415d6f94752eec09e7c7.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/dom_ui/options/language_options_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/options/language_options_handler.cc b/chrome/browser/dom_ui/options/language_options_handler.cc index 51e307b..816b1f2 100644 --- a/chrome/browser/dom_ui/options/language_options_handler.cc +++ b/chrome/browser/dom_ui/options/language_options_handler.cc @@ -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"); |