summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker.h
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 18:50:55 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 18:50:55 +0000
commitc49d729253e861bff32cb2ac20ccca7156d4f343 (patch)
tree4716a5b79c2f85361d62d91e1cea78a07d7f7ddc /chrome/browser/spellchecker.h
parent124646932219f4cd17a3dc80393485e923deb1ba (diff)
downloadchromium_src-c49d729253e861bff32cb2ac20ccca7156d4f343.zip
chromium_src-c49d729253e861bff32cb2ac20ccca7156d4f343.tar.gz
chromium_src-c49d729253e861bff32cb2ac20ccca7156d4f343.tar.bz2
Get rid of unnecessary region code from spellcheck language/locale codes. Fix of Linux by using ARRAYSIZE_UNSAFE instead of arraysize.
Issue=Issue=6329 Review URL: http://codereview.chromium.org/18567 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r--chrome/browser/spellchecker.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h
index e4a3a18..ef36372 100644
--- a/chrome/browser/spellchecker.h
+++ b/chrome/browser/spellchecker.h
@@ -92,6 +92,10 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
static int GetSpellCheckLanguagesToDisplayInContextMenu(
Profile* profile,
Languages* display_languages);
+
+ // This function returns the corresponding language-region code for the
+ // spell check language. For example, for hi, it returns hi-IN.
+ static Language GetSpellCheckLanguageRegion(Language input_language);
private:
// Download dictionary files when required.