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

Issue 270203003: Refactor code to avoid direct dependency upon ICU: spellcheck_worditerator (Closed)

Created:
6 years, 7 months ago by Andrew Hayden (chromium.org)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, groby+spellwatch_chromium.org, rpetterson, erikwright+watch_chromium.org, rouslan+spellwatch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@refactoring_icu_usage
Visibility:
Public.

Description

Refactor code to avoid direct dependency upon ICU: spellcheck_worditerator BUG=367677 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276869

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Compiler happiness #

Patch Set 4 : More compiler happiness, and make rules an instance instead of a reference #

Patch Set 5 : Simplify #

Total comments: 12

Patch Set 6 : Address comments #

Patch Set 7 : Rebase #

Total comments: 5

Patch Set 8 : Remove useless code #

Total comments: 6

Patch Set 9 : jungshik@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -60 lines) Patch
M base/i18n/break_iterator.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -2 lines 0 comments Download
M base/i18n/break_iterator.cc View 1 2 3 4 5 6 7 8 6 chunks +55 lines, -9 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator.h View 1 2 3 4 5 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_worditerator.cc View 1 2 3 4 5 6 7 5 chunks +28 lines, -40 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Andrew Hayden (chromium.org)
PTAL. groby@ as owner of the spellcheck code, jshin@ as owner of the break_iterator.
6 years, 7 months ago (2014-05-07 15:44:55 UTC) #1
Andrew Hayden (chromium.org)
Also please note this change depends upon an incremental improvement in break_iterator.h that is under ...
6 years, 7 months ago (2014-05-07 15:45:33 UTC) #2
groby-ooo-7-16
Mostly nits - thanks for cleaning this up! https://codereview.chromium.org/270203003/diff/80001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/270203003/diff/80001/base/i18n/break_iterator.cc#newcode140 base/i18n/break_iterator.cc:140: if ...
6 years, 7 months ago (2014-05-08 17:52:00 UTC) #3
Andrew Hayden (chromium.org)
https://codereview.chromium.org/270203003/diff/80001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/270203003/diff/80001/base/i18n/break_iterator.cc#newcode140 base/i18n/break_iterator.cc:140: if (break_type_ != BREAK_WORD && break_type_ != RULE_BASED) On ...
6 years, 7 months ago (2014-05-09 15:16:16 UTC) #4
Andrew Hayden (chromium.org)
PTAL. Thanks!
6 years, 7 months ago (2014-05-09 15:18:21 UTC) #5
groby-ooo-7-16
LGTM for spellcheck
6 years, 7 months ago (2014-05-09 20:05:15 UTC) #6
Andrew Hayden (chromium.org)
Thanks, groby@. Jungshik, can you take a look?
6 years, 7 months ago (2014-05-12 11:37:40 UTC) #7
Andrew Hayden (chromium.org)
I removed some code that didn't do anything, and verified that unit tests still pass: ...
6 years, 7 months ago (2014-05-12 13:19:37 UTC) #8
groby-ooo-7-16
Still LGTM % text_ nit https://codereview.chromium.org/270203003/diff/120001/chrome/renderer/spellchecker/spellcheck_worditerator.cc File chrome/renderer/spellchecker/spellcheck_worditerator.cc (right): https://codereview.chromium.org/270203003/diff/120001/chrome/renderer/spellchecker/spellcheck_worditerator.cc#newcode354 chrome/renderer/spellchecker/spellcheck_worditerator.cc:354: // Return false if ...
6 years, 7 months ago (2014-05-12 20:14:48 UTC) #9
Andrew Hayden (chromium.org)
A few style nits of my own https://codereview.chromium.org/270203003/diff/140001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/270203003/diff/140001/base/i18n/break_iterator.cc#newcode60 base/i18n/break_iterator.cc:60: iter_ = ...
6 years, 7 months ago (2014-05-12 21:02:41 UTC) #10
jungshik at Google
https://codereview.chromium.org/270203003/diff/140001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/270203003/diff/140001/base/i18n/break_iterator.cc#newcode60 base/i18n/break_iterator.cc:60: iter_ = ubrk_openRules(rules_.c_str(), // rules string On 2014/05/12 21:02:41, ...
6 years, 7 months ago (2014-05-13 06:32:44 UTC) #11
Andrew Hayden (chromium.org)
https://codereview.chromium.org/270203003/diff/140001/base/i18n/break_iterator.cc File base/i18n/break_iterator.cc (right): https://codereview.chromium.org/270203003/diff/140001/base/i18n/break_iterator.cc#newcode129 base/i18n/break_iterator.cc:129: pos_ = ubrk_first(static_cast<UBreakIterator*>(iter_)); On 2014/05/13 06:32:44, Jungshik Shin wrote: ...
6 years, 7 months ago (2014-05-13 08:45:49 UTC) #12
Andrew Hayden (chromium.org)
Addressed the comment about ubrk_first. Jungshik, can you PTAL?
6 years, 7 months ago (2014-05-14 17:46:09 UTC) #13
Andrew Hayden (chromium.org)
On 2014/05/14 17:46:09, Andrew Hayden wrote: > Addressed the comment about ubrk_first. Jungshik, can you ...
6 years, 6 months ago (2014-06-10 13:53:55 UTC) #14
jungshik at Google
LGTM Sorry for the delay.
6 years, 6 months ago (2014-06-12 23:07:40 UTC) #15
Andrew Hayden (chromium.org)
On 2014/06/12 23:07:40, Jungshik Shin wrote: > LGTM Sorry for the delay. No worries. Thanks ...
6 years, 6 months ago (2014-06-12 23:11:08 UTC) #16
Andrew Hayden (chromium.org)
Sweet, no merge conflicts and all the trybots are happy? Must be my lucky day. ...
6 years, 6 months ago (2014-06-12 23:12:58 UTC) #17
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 6 months ago (2014-06-12 23:13:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/270203003/160001
6 years, 6 months ago (2014-06-12 23:16:23 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 00:42:58 UTC) #20
Message was sent while issue was closed.
Change committed as 276869

Powered by Google App Engine
This is Rietveld 408576698