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

Issue 2198143002: Componentize spellcheck [3]: move renderer/ files to component. (Closed)

Created:
4 years, 4 months ago by timvolodine
Modified:
4 years, 4 months ago
Reviewers:
groby-ooo-7-16, jam
CC:
chromium-reviews, Dirk Pranke, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org, groby+spellwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize spellcheck [3]: move renderer/ files to component. Move all chrome/renderer spellcheck files and tests to component, update dependencies and build files. Also address some compile and unittest issues, e.g. make sure to properly initialize blink in tests to avoid crashes. The main motivation behind the componentization of the spellcheck feature is that we want to make it available in Android WebView. Preceding 'componentize' patches: [1] https://codereview.chromium.org/2166683003/ [2] https://codereview.chromium.org/2177343002/ BUG=583616, 629609 Committed: https://crrev.com/7ef691f4cdae52d0171ee1abafe33b5df8c09dd3 Cr-Commit-Position: refs/heads/master@{#411469}

Patch Set 1 #

Patch Set 2 : fix gn dependencies #

Patch Set 3 : fix unittests and mac build #

Patch Set 4 : fix ios, fix win x64 #

Patch Set 5 : fix ios unittests #

Patch Set 6 : intermediate #

Patch Set 7 : fix unittests blink initialization #

Patch Set 8 : fix formatting #

Total comments: 6

Patch Set 9 : add TODO crbug references for EnsureBlinkInitialized() #

Patch Set 10 : add unittest (blink) support to component run_all_unittests #

Patch Set 11 : temp: -spellcheck_provider #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -5461 lines) Patch
M chrome/chrome_renderer.gypi View 2 chunks +1 line, -39 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -17 lines 0 comments Download
M chrome/renderer/BUILD.gn View 2 chunks +1 line, -19 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/renderer/spellchecker/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/renderer/spellchecker/custom_dictionary_engine.h View 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/renderer/spellchecker/custom_dictionary_engine.cc View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/renderer/spellchecker/custom_dictionary_engine_unittest.cc View 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/renderer/spellchecker/hunspell_engine.h View 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/renderer/spellchecker/hunspell_engine.cc View 1 chunk +0 lines, -140 lines 0 comments Download
D chrome/renderer/spellchecker/platform_spelling_engine.h View 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/renderer/spellchecker/platform_spelling_engine.cc View 1 chunk +0 lines, -47 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck.h View 1 chunk +0 lines, -164 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck.cc View 1 chunk +0 lines, -547 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_language.h View 1 chunk +0 lines, -99 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_language.cc View 1 chunk +0 lines, -151 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_multilingual_unittest.cc View 1 chunk +0 lines, -256 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_provider.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -134 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -351 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_provider_hunspell_unittest.cc View 1 chunk +0 lines, -183 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_provider_mac_unittest.cc View 1 chunk +0 lines, -92 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_provider_test.h View 1 chunk +0 lines, -68 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_provider_test.cc View 1 chunk +0 lines, -101 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_unittest.cc View 1 chunk +0 lines, -1570 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_worditerator.h View 1 chunk +0 lines, -200 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_worditerator.cc View 1 chunk +0 lines, -445 lines 0 comments Download
D chrome/renderer/spellchecker/spellcheck_worditerator_unittest.cc View 1 chunk +0 lines, -508 lines 0 comments Download
D chrome/renderer/spellchecker/spelling_engine.h View 1 chunk +0 lines, -34 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -13 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +29 lines, -0 lines 0 comments Download
M components/spellcheck.gypi View 1 chunk +58 lines, -8 lines 0 comments Download
M components/spellcheck/common/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
A components/spellcheck/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +107 lines, -0 lines 0 comments Download
A + components/spellcheck/renderer/DEPS View 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
A + components/spellcheck/renderer/custom_dictionary_engine.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/spellcheck/renderer/custom_dictionary_engine.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/custom_dictionary_engine_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/hunspell_engine.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/hunspell_engine.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/platform_spelling_engine.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/platform_spelling_engine.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/spellcheck.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_language.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_language.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_multilingual_unittest.cc View 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_provider.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_provider_hunspell_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/spellcheck_provider_mac_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/spellcheck_provider_test.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_provider_test.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_unittest.cc View 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_worditerator.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_worditerator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + components/spellcheck/renderer/spellcheck_worditerator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/spellcheck/renderer/spelling_engine.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 71 (50 generated)
timvolodine
Note: presubmit complains about UMA_HISTOGRAM names not matching with histograms.xml (like SpellCheck.api.check.suggestions). I assume this ...
4 years, 4 months ago (2016-08-02 16:53:21 UTC) #27
timvolodine
please take a look
4 years, 4 months ago (2016-08-02 16:55:37 UTC) #29
groby-ooo-7-16
Mostly LG, except for the Blink question https://codereview.chromium.org/2198143002/diff/140001/components/spellcheck/renderer/spellcheck_multilingual_unittest.cc File components/spellcheck/renderer/spellcheck_multilingual_unittest.cc (right): https://codereview.chromium.org/2198143002/diff/140001/components/spellcheck/renderer/spellcheck_multilingual_unittest.cc#newcode50 components/spellcheck/renderer/spellcheck_multilingual_unittest.cc:50: MultilingualSpellCheckTest() { ...
4 years, 4 months ago (2016-08-03 17:31:54 UTC) #35
timvolodine
thanks groby@, answers below https://codereview.chromium.org/2198143002/diff/140001/components/spellcheck/renderer/spellcheck_multilingual_unittest.cc File components/spellcheck/renderer/spellcheck_multilingual_unittest.cc (right): https://codereview.chromium.org/2198143002/diff/140001/components/spellcheck/renderer/spellcheck_multilingual_unittest.cc#newcode50 components/spellcheck/renderer/spellcheck_multilingual_unittest.cc:50: MultilingualSpellCheckTest() { test_runner::EnsureBlinkInitialized(); } On ...
4 years, 4 months ago (2016-08-03 19:12:30 UTC) #36
groby-ooo-7-16
On 2016/08/03 19:12:30, timvolodine wrote: > thanks groby@, answers below > > https://codereview.chromium.org/2198143002/diff/140001/components/spellcheck/renderer/spellcheck_multilingual_unittest.cc > File ...
4 years, 4 months ago (2016-08-03 20:37:40 UTC) #37
groby-ooo-7-16
On 2016/08/03 20:37:40, groby wrote: > On 2016/08/03 19:12:30, timvolodine wrote: > > thanks groby@, ...
4 years, 4 months ago (2016-08-03 20:38:21 UTC) #38
timvolodine
On 2016/08/03 20:38:21, groby wrote: > On 2016/08/03 20:37:40, groby wrote: > > On 2016/08/03 ...
4 years, 4 months ago (2016-08-04 14:30:14 UTC) #41
timvolodine
+jam@: for RS of the remaining few bits, in particular chrome/renderer/BUILD.gn chrome/renderer/DEPS chrome/renderer/chrome_content_renderer_client.cc chrome/test/base/chrome_render_view_test.cc components/BUILD.gn
4 years, 4 months ago (2016-08-04 14:34:28 UTC) #43
jam
On 2016/08/04 14:34:28, timvolodine wrote: > +jam@: for RS of the remaining few bits, in ...
4 years, 4 months ago (2016-08-04 17:49:54 UTC) #46
timvolodine
On 2016/08/04 17:49:54, jam wrote: > On 2016/08/04 14:34:28, timvolodine wrote: > > +jam@: for ...
4 years, 4 months ago (2016-08-05 12:26:14 UTC) #47
timvolodine
On 2016/08/05 12:26:14, timvolodine wrote: > On 2016/08/04 17:49:54, jam wrote: > > On 2016/08/04 ...
4 years, 4 months ago (2016-08-05 13:09:31 UTC) #48
timvolodine
jam@: ptal?
4 years, 4 months ago (2016-08-08 14:33:40 UTC) #49
jam
On 2016/08/05 13:09:31, timvolodine wrote: > On 2016/08/05 12:26:14, timvolodine wrote: > > On 2016/08/04 ...
4 years, 4 months ago (2016-08-09 15:41:33 UTC) #50
timvolodine
On 2016/08/09 15:41:33, jam wrote: > On 2016/08/05 13:09:31, timvolodine wrote: > > On 2016/08/05 ...
4 years, 4 months ago (2016-08-09 18:12:35 UTC) #56
jam
On 2016/08/09 18:12:35, timvolodine wrote: > On 2016/08/09 15:41:33, jam wrote: > > On 2016/08/05 ...
4 years, 4 months ago (2016-08-09 19:52:41 UTC) #57
timvolodine
On 2016/08/09 19:52:41, jam wrote: > On 2016/08/09 18:12:35, timvolodine wrote: > > On 2016/08/09 ...
4 years, 4 months ago (2016-08-09 23:15:47 UTC) #58
jam
On 2016/08/09 23:15:47, timvolodine wrote: > On 2016/08/09 19:52:41, jam wrote: > > On 2016/08/09 ...
4 years, 4 months ago (2016-08-10 00:04:43 UTC) #59
timvolodine
> > ok I've created a cl with the fixes here : > > https://codereview.chromium.org/2229943002/ ...
4 years, 4 months ago (2016-08-11 22:37:10 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2198143002/220001
4 years, 4 months ago (2016-08-12 00:11:24 UTC) #67
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 4 months ago (2016-08-12 00:18:39 UTC) #69
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 00:21:56 UTC) #71
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/7ef691f4cdae52d0171ee1abafe33b5df8c09dd3
Cr-Commit-Position: refs/heads/master@{#411469}

Powered by Google App Engine
This is Rietveld 408576698