Index: chrome/common/spellcheck_common.cc |
diff --git a/chrome/common/spellcheck_common.cc b/chrome/common/spellcheck_common.cc |
index 9aa3a02d8bcefdf2004ff0c9f8062526ff01cc56..24b50280a2fcb31cdcadb8ba3323fd7d289487d6 100644 |
--- a/chrome/common/spellcheck_common.cc |
+++ b/chrome/common/spellcheck_common.cc |
@@ -8,7 +8,10 @@ |
#include "base/files/file_path.h" |
#include "base/logging.h" |
#include "base/macros.h" |
+#include "base/prefs/pref_member.h" |
+#include "base/prefs/pref_service.h" |
#include "chrome/common/chrome_switches.h" |
+#include "chrome/common/pref_names.h" |
#include "third_party/icu/source/common/unicode/uloc.h" |
#include "third_party/icu/source/common/unicode/urename.h" |
#include "third_party/icu/source/common/unicode/utypes.h" |
@@ -183,6 +186,12 @@ void GetISOLanguageCountryCodeFromLocale(const std::string& locale, |
*country_code = std::string(country); |
} |
+std::vector<std::string> GetDictionaryLanguagesPref(PrefService* prefs) { |
please use gerrit instead
2015/07/06 23:28:15
Now that we are not storing the list in string, th
Julius
2015/07/07 01:14:21
Done.
|
+ StringListPrefMember dictionaries_pref; |
+ dictionaries_pref.Init(prefs::kSpellCheckDictionaries, prefs); |
+ return dictionaries_pref.GetValue(); |
+} |
+ |
bool IsMultilingualSpellcheckEnabled() { |
return base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableMultilingualSpellChecker); |