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

Issue 10889002: Reset word iterators when changing the spellchecker language. (Closed)

Created:
8 years, 3 months ago by Hironori Bono
Modified:
8 years, 3 months ago
Reviewers:
Hajime Morrita
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Reset word iterators when changing the spellchecker language. My r101462 <http://crrev.com/101462>; caused an inconsistency between a spellchecker dictionary and a word iterator that it does not reset a word iterator when changing a spelchecker dictionary. Due to this inconsistency, our word iterator filters out Russian (Hebrew, Hindi, and Greek) characters when chaning from English to Russian (Hebrew, Hindi, and Greek), and vice versa. This change resets word iterators to fix this inconsistency. BUG=142828 TEST=SpellCheckTest.MisspelledWords Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=153852

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -4 lines) Patch
M chrome/renderer/spellchecker/spellcheck.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_unittest.cc View 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Hironori Bono
Morita-san, Many thanks for your cooperation to Chrome spellchecker in advance. Would it be possible ...
8 years, 3 months ago (2012-08-28 06:03:06 UTC) #1
Hajime Morrita
Thanks for fixing this. LGTM with a small nitpick. http://codereview.chromium.org/10889002/diff/1/chrome/renderer/spellchecker/spellcheck.cc File chrome/renderer/spellchecker/spellcheck.cc (right): http://codereview.chromium.org/10889002/diff/1/chrome/renderer/spellchecker/spellcheck.cc#newcode133 chrome/renderer/spellchecker/spellcheck.cc:133: ...
8 years, 3 months ago (2012-08-28 07:00:34 UTC) #2
Hironori Bono
8 years, 3 months ago (2012-08-29 08:41:45 UTC) #3
Morita-san,

Thanks for your review and comment. I have updated my change and landed the
updated one.

Regards,

Hironori Bono

http://codereview.chromium.org/10889002/diff/1/chrome/renderer/spellchecker/s...
File chrome/renderer/spellchecker/spellcheck.cc (right):

http://codereview.chromium.org/10889002/diff/1/chrome/renderer/spellchecker/s...
chrome/renderer/spellchecker/spellcheck.cc:133: contraction_iterator_.Close();
On 2012/08/28 07:00:34, morrita1 wrote:
> Nit* It's confusing to call Close() during Init().
> It would be nice to have some better alias like Reset().

Done. I have renamed Close() to Reset().

Powered by Google App Engine
This is Rietveld 408576698