diff options
Diffstat (limited to 'chrome/browser')
-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) { |