From 788a15967cba100d87b30d0a0cf7075fb8d0c506 Mon Sep 17 00:00:00 2001 From: "sidchat@google.com" Date: Mon, 9 Mar 2009 21:20:36 +0000 Subject: 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 --- chrome/browser/views/options/languages_page_view.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/views/options') 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) { -- cgit v1.1