diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 21:20:36 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 21:20:36 +0000 |
commit | 788a15967cba100d87b30d0a0cf7075fb8d0c506 (patch) | |
tree | 08d9f15d404c901d0bb20525dacbba0546f62290 /chrome/browser/views/options | |
parent | 3d68b595e6db3e79daca5430d3f6bf0562262a84 (diff) | |
download | chromium_src-788a15967cba100d87b30d0a0cf7075fb8d0c506.zip chromium_src-788a15967cba100d87b30d0a0cf7075fb8d0c506.tar.gz chromium_src-788a15967cba100d87b30d0a0cf7075fb8d0c506.tar.bz2 |
Remove the spellcheck language preference setting when UI language is changed, so that spellcheck language falls back to default.
Issue=7811
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/options')
-rw-r--r-- | chrome/browser/views/options/languages_page_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/options/languages_page_view.cc b/chrome/browser/views/options/languages_page_view.cc index 9439f7d..1eb821f 100644 --- a/chrome/browser/views/options/languages_page_view.cc +++ b/chrome/browser/views/options/languages_page_view.cc @@ -833,6 +833,11 @@ void LanguagesPageView::SaveChanges() { g_browser_process->local_state()); app_locale_.SetValue(ui_language_model_-> GetLocaleFromIndex(ui_language_index_selected_)); + + // Remove pref values for spellcheck dictionaries forcefully. + PrefService* prefs = profile()->GetPrefs(); + if (prefs) + prefs->ClearPref(prefs::kSpellCheckDictionary); } if (spellcheck_language_index_selected_ != -1) { |