summaryrefslogtreecommitdiffstats
path: root/chrome/common/spellcheck_common.cc
Commit message (Collapse)AuthorAgeFilesLines
* Enable multilingual spellcheck by default.rouslan2015-10-081-2/+19
| | | | | | | | | | | This patch enables multilingual spellcheck by default with an option to disable it on demand via field trial. BUG=5102 Review URL: https://codereview.chromium.org/1389153002 Cr-Commit-Position: refs/heads/master@{#353107}
* Disables "Ask Google" when multilingual spellcheck is enabled.juliusa2015-07-011-0/+7
| | | | | | | | | | | | | | Part of the larger project to enable multilingual spellchecking. This patch adds the multilingual spellchecker command-line flag and disables the Spelling Service Client if the flag is set. This needs to be done because the spellcheck server does not currently support multiple languages. BUG=5102 Review URL: https://codereview.chromium.org/1210083003 Cr-Commit-Position: refs/heads/master@{#336960}
* Do not duplicate custom dictionary words on disk.rouslan2015-06-031-0/+3
| | | | | | | | | | | | | | | If custom dictionary sync starts before loading the custom dictionary file, then the file will contain duplicate entries. Removing a word from your dictionary will remove only one of the duplicates from the file. The removed word would come back after relaunching the browser. The fix is to avoid writing duplicates to disk. TEST=SpellcheckCustomDictionaryTest.SyncBeforeLoadDoesNotDuplicateWords BUG=442709 Review URL: https://codereview.chromium.org/1056973005 Cr-Commit-Position: refs/heads/master@{#332523}
* Bump en-us/ca spellcheck dictionaries used.rouslan2015-03-121-2/+4
| | | | | | | | | | | Dictionaries en-US-6-1.bdic and en-CA-6-1.bdic now support typographical apostrophes and have been uploaded to the server. BUG=165079 Review URL: https://codereview.chromium.org/997633002 Cr-Commit-Position: refs/heads/master@{#320390}
* Roll .../hunspell_dictionaries 06517db:94eb94c (svn 292711:292714)hichris1232015-01-161-0/+6
| | | | | | | | | | | Summary of changes available at: https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries/+log/4560bdd..94eb94c BUG=331684, 239579, 338973, 287853, 153249, 170748, 412813, 251657, 304272, 334550 Review URL: https://codereview.chromium.org/684993004 Cr-Commit-Position: refs/heads/master@{#311836}
* Use Tajik dictionary in Chromerouslan@chromium.org2014-03-191-0/+2
| | | | | | | | BUG=330155 Review URL: https://codereview.chromium.org/186913002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258088 0039d316-1c4b-4281-b951-d872f2087c98
* Replace third_party/icu/public with third_party/icu/source in the include ↵jshin@chromium.org2013-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | directives. This is to move back icu headers in third_party/icu/public/{i18n,common}/unicode back to their upstream locations in third_party/icu/source/{i18n,common}/unicode. http://codereview.chromium.org/18836004 has is a CL to move ICU header files. Roll ICU to the version with the above ICU CL (http://crrev.com/211851 ). In addition to the global replacement of third_party/icu/public with third_party/icu/source, the top-level DEPS, DEPS in printing and chrome/ are tightened up. (the latter two were too permissive (it used to allow any header from third_party/icu). Besides, sync '-foo' list in ios/public/DEPS with '+foo' in the top-level DEPS and build/linux/unbundled/icu.gyp is updated. BUG=251433 TEST=Compile succeeds on all bots. checkdeps.py does not find any error. TBR=brettw,sky,wtc Review URL: https://chromiumcodereview.appspot.com/18252003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212324 0039d316-1c4b-4281-b951-d872f2087c98
* Move GetISOLanguageCountryCodeFromLocale() to common to be sharedrouslan@chromium.org2013-05-141-0/+21
| | | | | | | | | | | This CL moves GetISOLanguageCountryCodeFromLocale() to spellheck_common to be shared among spelling service client and spellcheck service. BUG=170514 Review URL: https://chromiumcodereview.appspot.com/14876027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199913 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Use base namespace for FilePath in chrome/common and content/common.brettw@chromium.org2013-02-071-2/+2
| | | | | | Review URL: https://codereview.chromium.org/12210058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181350 0039d316-1c4b-4281-b951-d872f2087c98
* Add checksums to Turkish and Estonian spellcheck dictionariesrouslan@chromium.org2013-01-101-2/+2
| | | | | | | | | | | This CL bumps et-EE spellcheck dictionary version to 3-0 and tr-TR to 4-0. The updated dictionaries contain a checksum, which improves reliability. BUG=168825 Review URL: https://chromiumcodereview.appspot.com/11826006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176194 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 175724jochen@chromium.org2013-01-091-2/+5
| | | | | | | | | | | | | | | | | | | > Add checksums to Turkish and Estonian spellcheck dictionaries > > This CL bumps es-EE and tr-TR spellcheck dictionary versions to 3-0. The updated > dictionaries contain a checksum, which improves reliability. > > BUG=168825 > > > Review URL: https://chromiumcodereview.appspot.com/11826006 Breaks SpellCheckTest.SpellCheckText on Linux Heapcheck TBR=rouslan@chromium.org Review URL: https://codereview.chromium.org/11783054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175741 0039d316-1c4b-4281-b951-d872f2087c98
* Add checksums to Turkish and Estonian spellcheck dictionariesrouslan@chromium.org2013-01-091-5/+2
| | | | | | | | | | | | This CL bumps es-EE and tr-TR spellcheck dictionary versions to 3-0. The updated dictionaries contain a checksum, which improves reliability. BUG=168825 Review URL: https://chromiumcodereview.appspot.com/11826006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175724 0039d316-1c4b-4281-b951-d872f2087c98
* Bump dictionary versions to 3-0rouslan@chromium.org2013-01-081-35/+15
| | | | | | | | | | | | | Bumps the dictionary versions to 3-0 to: 1) Use the dictionaries with checksums. 2) Add dictionaries for ko, sq, and ta. 3) Update dictionaries for lv, nl, ru, and sv. BUG=8397,8803,20083,61206,65115,104891,112227,113821 Review URL: https://chromiumcodereview.appspot.com/11566003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175549 0039d316-1c4b-4281-b951-d872f2087c98
* [Spellcheck, Security] Filter against invalid locales.groby@chromium.org2012-12-211-17/+24
| | | | | | | | | | | Prevents passing up of garbage strings from renderer (and thus, prevents opening of arbitrary files) BUG=167122 Review URL: https://chromiumcodereview.appspot.com/11618046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174304 0039d316-1c4b-4281-b951-d872f2087c98
* [Spellcheck] Fixed commentgroby@chromium.org2012-12-071-1/+1
| | | | | | | | | | | | Comment now reflects reality. Knowledge why this comment is there in the first place has been lost to the mists of time. R=rlp@chromium.org BUG=62792 Review URL: https://chromiumcodereview.appspot.com/11474008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171659 0039d316-1c4b-4281-b951-d872f2087c98
* Unittest to go along with added no suggest flag. Currently tests no suggest ↵rlp@chromium.org2012-11-171-2/+2
| | | | | | | | | | | | | | for English dictionaries. Also updates DEPS to the new dictionary including the NOSUGGEST feature. BUG=160847 TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/11299044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168390 0039d316-1c4b-4281-b951-d872f2087c98
* retry r165562: Bump English spellcheck dictionary versions and add testsestade@chromium.org2012-11-031-4/+5
| | | | | | | | | | | android build bots have been fixed so spellcheck tests should pass. BUG=94708, 98678, 140486, 146093 TBR=thestig,groby Review URL: https://codereview.chromium.org/11361080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165812 0039d316-1c4b-4281-b951-d872f2087c98
* When accepted_languages are "en-US" and "en", shinyak@chromium.org2012-11-021-19/+0
| | | | | | | | | | | | | a dictionary for "en-AU" is used for accepted language "en". To be consistent with language preference page, languages only available in spellchecker are shown. BUG=84802 TEST=SpellCheckHostTest.* Review URL: https://chromiumcodereview.appspot.com/11301035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165645 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 165562 - Bump English spellcheck dictionary versions and add testskaiwang@chromium.org2012-11-021-5/+4
| | | | | | | | | | | BUG=94708, 98678, 140486, 146093 Review URL: https://codereview.chromium.org/11348019 TBR=estade@chromium.org Review URL: https://codereview.chromium.org/11365057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165577 0039d316-1c4b-4281-b951-d872f2087c98
* Bump English spellcheck dictionary versions and add testsestade@chromium.org2012-11-021-4/+5
| | | | | | | | BUG=94708, 98678, 140486, 146093 Review URL: https://codereview.chromium.org/11348019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165562 0039d316-1c4b-4281-b951-d872f2087c98
* Rename SpellCheckCommon namespace to chrome.tfarina@chromium.org2012-06-201-2/+4
| | | | | | | | | BUG=133126,133088 R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10573017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143200 0039d316-1c4b-4281-b951-d872f2087c98
* Pull spellchecker dictionaries.hbono@chromium.org2012-06-041-0/+6
| | | | | | | | | | | This change pulls a couple of update spellchecker dictionaries (Catalan and Swidish) to the Chromium tree and use them. BUG=108933,111322,82125,124599 TEST=SpellCheckTest.SpellCheckText Review URL: https://chromiumcodereview.appspot.com/10389189 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140258 0039d316-1c4b-4281-b951-d872f2087c98
* bump hunspell dictionary version numbers for en-RR localesestade@chromium.org2012-05-301-3/+5
| | | | | | | | | | | see http://codereview.chromium.org/10388240/ BUG=95834, 77708, 128896 TEST=none Review URL: https://chromiumcodereview.appspot.com/10411080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139437 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 79705 - Revert 79651 - Coverity: Pass parameters by reference.dhollowa@chromium.org2011-03-291-13/+0
| | | | | | | | | | | | | | | | | | | | | Also remove an unused function that I found. CID=2634,4471,5392,6433,6434,6535,6777,6780,6781,6792,6810,7665,7759,8056,8072, 8637,8718,8726 BUG=none TEST=non R=csilv@chromium.org Review URL: http://codereview.chromium.org/6730046 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/6773015 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/6772013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79714 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 79651 - Coverity: Pass parameters by reference.dhollowa@chromium.org2011-03-291-0/+13
| | | | | | | | | | | | | | | | | | Also remove an unused function that I found. CID=2634,4471,5392,6433,6434,6535,6777,6780,6781,6792,6810,7665,7759,8056,8072, 8637,8718,8726 BUG=none TEST=non R=csilv@chromium.org Review URL: http://codereview.chromium.org/6730046 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/6773015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79705 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-03-291-13/+0
| | | | | | | | | | | | | | | Also remove an unused function that I found. CID=2634,4471,5392,6433,6434,6535,6777,6780,6781,6792,6810,7665,7759,8056,8072, 8637,8718,8726 BUG=none TEST=non R=csilv@chromium.org Review URL: http://codereview.chromium.org/6730046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79651 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a unit test for the Serbian (Latin) dictionary.hbono@chromium.org2011-03-241-0/+3
| | | | | | | | | | This change adds a test case for the Serbian (Latin) dictionary and removes a comment for the test case for the Portuguese (Brazil) dictionary. BUG=53018,57494 TEST=unit_tests --gtest_filter=SpellCheckTest.SpellCheckText Review URL: http://codereview.chromium.org/6708081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79256 0039d316-1c4b-4281-b951-d872f2087c98
* Use new en-US and en-CA dictionaries.estade@chromium.org2011-03-101-4/+7
| | | | | | | | | BUG=68714 TEST=manual/spellcheck unittest Review URL: http://codereview.chromium.org/6651005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77570 0039d316-1c4b-4281-b951-d872f2087c98
* retry r72606:estade@chromium.org2011-01-281-10/+6
| | | | | | | | | | | Pull down new GB/AU dictionaries. BUG=5509 TEST=manual Review URL: http://codereview.chromium.org/6366017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73002 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r72606, except for the DEPS roll. It's redding the tree.estade@chromium.org2011-01-261-5/+9
| | | | | | | | | BUG=5509 TEST=waterfall Review URL: http://codereview.chromium.org/6388005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72609 0039d316-1c4b-4281-b951-d872f2087c98
* Pull down new GB/AU dictionaries.estade@chromium.org2011-01-261-9/+5
| | | | | | | | | BUG=5509 TEST=manual Review URL: http://codereview.chromium.org/6356009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72606 0039d316-1c4b-4281-b951-d872f2087c98
* Adds unit tests for Serbian and Ukranian dictionaries.hbono@chromium.org2010-07-281-0/+4
| | | | | | | | | | This change is unit tests for <http://codereview.chromium.org/2805065/show>. BUG=43011,40340 TEST=unit_test --gtest_filter=SpellCheckTest* Review URL: http://codereview.chromium.org/2807035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53909 0039d316-1c4b-4281-b951-d872f2087c98
* Pull in the French spellcheck dictionary 2-0. This will be landedjshin@chromium.org2010-07-151-1/+1
| | | | | | | | | | | after the new 2-0 dictionary becomes live. BUG=47891,47007 TEST=SpellCheckTest.SpellCheckText Review URL: http://codereview.chromium.org/2824042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52449 0039d316-1c4b-4281-b951-d872f2087c98
* Add Bulgarian spellchecker. Hunspell change will be committed separately.jshin@chromium.org2010-05-031-1/+3
| | | | | | | | BUG=33327 TEST=covered by spellcheck_unittest Review URL: http://codereview.chromium.org/1523017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46273 0039d316-1c4b-4281-b951-d872f2087c98
* Uses the new spellchecker dictionaries on Chromium.hbono@chromium.org2010-03-151-2/+5
| | | | | | | | | | This change enables Chromium users to use the new spellchecker dictionaries added by r39400, r40614, and r41000. This change also adds a unit test for Hungarian and rebaselines the unit test for Romanian. As written in Issue 33024, the correct Romanian characters are U+0219 and U+021B even though our old Romanian dictionary uses U+015F and U+0163. So, this change rebaselined to use the correct Romanian characters. BUG=8397,15558,33024 TEST=unit_test.exe --gtest_filter=SpellCheckTest.SpellCheckText Review URL: http://codereview.chromium.org/661460 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41562 0039d316-1c4b-4281-b951-d872f2087c98
* Move Mac to using renderer spellchecker.estade@chromium.org2009-11-191-0/+174
BUG=25677 Review URL: http://codereview.chromium.org/395007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32561 0039d316-1c4b-4281-b951-d872f2087c98