Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: chrome/common/spellcheck_common.cc

Issue 1156473007: Enables the user to select multiple languages for spellchecking (UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replied to old comments and fixed small issues. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698