summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/browser_context_qt.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp
index e76222d48..1c326fb83 100644
--- a/src/core/browser_context_qt.cpp
+++ b/src/core/browser_context_qt.cpp
@@ -80,12 +80,9 @@ BrowserContextQt::BrowserContextQt(BrowserContextAdapter *adapter)
scoped_refptr<PrefRegistrySimple> registry(new PrefRegistrySimple());
// Initial spellcheck settings
- std::string spellcheckLang = QLocale().bcp47Name().toStdString();
- base::ListValue *dictionaries = new base::ListValue;
- dictionaries->AppendString(spellcheckLang);
- registry->RegisterListPref(prefs::kSpellCheckDictionaries, dictionaries);
- registry->RegisterStringPref(prefs::kAcceptLanguages, spellcheckLang);
- registry->RegisterStringPref(prefs::kSpellCheckDictionary, spellcheckLang);
+ registry->RegisterListPref(prefs::kSpellCheckDictionaries, new base::ListValue());
+ registry->RegisterStringPref(prefs::kAcceptLanguages, std::string());
+ registry->RegisterStringPref(prefs::kSpellCheckDictionary, std::string());
registry->RegisterBooleanPref(prefs::kSpellCheckUseSpellingService, false);
registry->RegisterBooleanPref(prefs::kEnableContinuousSpellcheck, false);
registry->RegisterBooleanPref(prefs::kEnableAutoSpellCorrect, false);