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

Issue 1937203002: Fixed hasty language selection in GetCorrespondingSpellCheckLanguage (Closed)

Created:
4 years, 7 months ago by Kevin Bailey
Modified:
4 years, 7 months ago
CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

In 'GetCorrespondingSpellCheckLanguage()', we were finding the first language whose region matched the incoming language. For example, it would find 'en-GB' in the region and assume that the primary language was 'en-AU'. Changed to continue searching to see if there is a perfect match later in the language field. BUG=608383 Committed: https://crrev.com/ca4eea63cf1d51f5d1e2ba4a6e3047f622438148 Cr-Commit-Position: refs/heads/master@{#391566}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added another unit test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M chrome/browser/spellchecker/spellcheck_service_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/spellcheck_common.cc View 2 chunks +7 lines, -4 lines 1 comment Download

Messages

Total messages: 21 (9 generated)
Kevin Bailey
It was searching by value to find the key, so had to help it out ...
4 years, 7 months ago (2016-05-02 17:26:20 UTC) #3
please use gerrit instead
https://codereview.chromium.org/1937203002/diff/1/chrome/common/spellcheck_common.cc File chrome/common/spellcheck_common.cc (right): https://codereview.chromium.org/1937203002/diff/1/chrome/common/spellcheck_common.cc#newcode158 chrome/common/spellcheck_common.cc:158: best_match = g_supported_spellchecker_languages[i].language; If we're switching from returning the ...
4 years, 7 months ago (2016-05-02 18:02:28 UTC) #4
Kevin Bailey
https://codereview.chromium.org/1937203002/diff/1/chrome/common/spellcheck_common.cc File chrome/common/spellcheck_common.cc (right): https://codereview.chromium.org/1937203002/diff/1/chrome/common/spellcheck_common.cc#newcode158 chrome/common/spellcheck_common.cc:158: best_match = g_supported_spellchecker_languages[i].language; On 2016/05/02 18:02:28, Rouslan wrote: > ...
4 years, 7 months ago (2016-05-02 18:20:46 UTC) #5
please use gerrit instead
lgtm
4 years, 7 months ago (2016-05-02 18:59:19 UTC) #6
groby-ooo-7-16
https://codereview.chromium.org/1937203002/diff/20001/chrome/common/spellcheck_common.cc File chrome/common/spellcheck_common.cc (right): https://codereview.chromium.org/1937203002/diff/20001/chrome/common/spellcheck_common.cc#newcode156 chrome/common/spellcheck_common.cc:156: if (spellcheck_language_region == language) { What specific behavior does ...
4 years, 7 months ago (2016-05-02 19:07:49 UTC) #8
groby-ooo-7-16
On 2016/05/02 19:07:49, groby wrote: > https://codereview.chromium.org/1937203002/diff/20001/chrome/common/spellcheck_common.cc > File chrome/common/spellcheck_common.cc (right): > > https://codereview.chromium.org/1937203002/diff/20001/chrome/common/spellcheck_common.cc#newcode156 > ...
4 years, 7 months ago (2016-05-02 19:08:33 UTC) #9
Kevin Bailey
On 2016/05/02 19:07:49, groby wrote: > What specific behavior does this fix? Is this _just_ ...
4 years, 7 months ago (2016-05-02 20:51:17 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1937203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1937203002/20001
4 years, 7 months ago (2016-05-04 16:57:09 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-04 17:56:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1937203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1937203002/20001
4 years, 7 months ago (2016-05-04 18:14:44 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-04 18:20:08 UTC) #19
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 18:21:29 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ca4eea63cf1d51f5d1e2ba4a6e3047f622438148
Cr-Commit-Position: refs/heads/master@{#391566}

Powered by Google App Engine
This is Rietveld 408576698