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

Issue 2828313002: Convert render process component common Spellcheck IPC to mojo (Closed)

Created:
3 years, 8 months ago by Noel Gordon
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews, yzshen+watch_chromium.org, qsr+mojo_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, timvolodine, abarth-chromium, Aaron Boodman, rlp+watch_chromium.org, rouslan+spell_chromium.org, groby+spellwatch_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert render process component common Spellcheck IPC to mojo Add a render process mojo interface exposed to the browser for receiving process-wide spellcheck control and updates from the browser process. Fold the enable IPC into the Initialize() mojo API (the enable IPC was only ever called right after an Init IPC) by adding an |enable| argument. Mojo does not support set<> so use vector<> instead on the mojo APIs. Use a binding set on the server-side to automate mojo client request disconnect and clean-up. Update the browser test to use mojo instead of IPC in the mock renderer and add a test for a custom dictionary update. Change the InitSpellcheck helper: spellcheck->InitForRenderer() isn't needed (creating a SpellcheckService does that for us). Uploaded and landed in Gerrit https://chromium-review.googlesource.com/c/487341 BUG=714480

Patch Set 1 #

Patch Set 2 : Fix component spellcheck unit tests. #

Patch Set 3 : Fix component spellcheck browser tests. #

Patch Set 4 : Add simulated CustomDictionaryChanged test. #

Patch Set 5 : Import this change from gerrit patch pull (test). #

Patch Set 6 : Import this change from gerrit a patch pull (test2). #

Patch Set 7 : Listen to binds late in InitSpellcheck. #

Patch Set 8 : Fix comment: discuss the bind override purpose. #

Patch Set 9 : Build fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -170 lines) Patch
M chrome/browser/chrome_content_renderer_manifest_overlay.json View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_service.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_service.cc View 1 2 3 4 5 6 7 8 4 chunks +32 lines, -27 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_service_browsertest.cc View 1 2 3 4 5 6 7 8 10 chunks +126 lines, -53 lines 0 comments Download
M components/spellcheck/common/BUILD.gn View 1 2 3 4 5 2 chunks +14 lines, -1 line 0 comments Download
M components/spellcheck/common/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A components/spellcheck/common/spellcheck.mojom View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
D components/spellcheck/common/spellcheck_bdict_language.h View 1 chunk +0 lines, -17 lines 0 comments Download
M components/spellcheck/common/spellcheck_messages.h View 2 chunks +0 lines, -22 lines 0 comments Download
M components/spellcheck/renderer/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/spellcheck/renderer/DEPS View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/spellcheck/renderer/spellcheck.h View 1 2 3 4 5 6 7 8 5 chunks +20 lines, -12 lines 0 comments Download
M components/spellcheck/renderer/spellcheck.cc View 1 2 3 4 5 6 7 8 3 chunks +47 lines, -35 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (51 generated)
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 8 months ago (2017-04-20 15:52:32 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/1
3 years, 8 months ago (2017-04-20 15:52:49 UTC) #2
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago (2017-04-20 15:56:54 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/161810) linux_chromium_compile_dbg_ng on ...
3 years, 8 months ago (2017-04-20 15:56:55 UTC) #4
Noel Gordon
Patchset #1 (id:1) has been deleted
3 years, 8 months ago (2017-04-20 16:05:45 UTC) #5
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 8 months ago (2017-04-20 16:05:58 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/20001
3 years, 8 months ago (2017-04-20 16:06:35 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago (2017-04-20 16:11:13 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/161817) linux_chromium_asan_rel_ng on ...
3 years, 8 months ago (2017-04-20 16:11:14 UTC) #9
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 8 months ago (2017-04-20 16:21:35 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/40001
3 years, 8 months ago (2017-04-20 16:22:16 UTC) #11
Noel Gordon
Patchset #1 (id:20001) has been deleted
3 years, 8 months ago (2017-04-20 16:22:19 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago (2017-04-20 16:54:48 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/58068)
3 years, 8 months ago (2017-04-20 16:54:49 UTC) #14
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 8 months ago (2017-04-20 17:22:41 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/60001
3 years, 8 months ago (2017-04-20 17:23:27 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago (2017-04-20 18:35:11 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/276516) win_chromium_x64_rel_ng on ...
3 years, 8 months ago (2017-04-20 18:35:12 UTC) #18
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 8 months ago (2017-04-20 23:49:20 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/80001
3 years, 8 months ago (2017-04-20 23:49:43 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago (2017-04-21 01:00:04 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 8 months ago (2017-04-21 01:00:05 UTC) #22
Noel Gordon
Description was changed from ========== Convert render process component common Spellcheck IPC to mojo BUG= ...
3 years, 8 months ago (2017-04-24 02:28:13 UTC) #23
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 8 months ago (2017-04-24 02:42:29 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/100001
3 years, 8 months ago (2017-04-24 02:42:39 UTC) #25
Noel Gordon
Description was changed from ========== Convert render process component common Spellcheck IPC to mojo BUG=714480 ...
3 years, 8 months ago (2017-04-24 02:51:51 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 8 months ago (2017-04-24 03:54:57 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 8 months ago (2017-04-24 03:54:58 UTC) #28
Noel Gordon
Description was changed from ========== Convert render process component common Spellcheck IPC to mojo See ...
3 years, 7 months ago (2017-04-27 05:05:27 UTC) #29
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 7 months ago (2017-04-27 05:09:28 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/120001
3 years, 7 months ago (2017-04-27 05:09:43 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 7 months ago (2017-04-27 06:20:28 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 7 months ago (2017-04-27 06:20:29 UTC) #33
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 7 months ago (2017-04-28 09:14:20 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/140001
3 years, 7 months ago (2017-04-28 09:14:36 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 7 months ago (2017-04-28 10:16:34 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/441518)
3 years, 7 months ago (2017-04-28 10:16:34 UTC) #37
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 7 months ago (2017-04-28 10:17:21 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/160001
3 years, 7 months ago (2017-04-28 10:17:40 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 7 months ago (2017-04-28 11:23:34 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 7 months ago (2017-04-28 11:23:34 UTC) #41
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 7 months ago (2017-04-28 12:27:59 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/180001
3 years, 7 months ago (2017-04-28 12:28:05 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 7 months ago (2017-04-28 15:50:30 UTC) #44
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 7 months ago (2017-04-28 15:50:31 UTC) #45
Noel Gordon
Description was changed from ========== Convert render process component common Spellcheck IPC to mojo Add ...
3 years, 7 months ago (2017-04-28 17:14:55 UTC) #46
Noel Gordon
The CQ bit was checked by noel@chromium.org to run a CQ dry run
3 years, 7 months ago (2017-05-04 15:50:23 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828313002/200001
3 years, 7 months ago (2017-05-04 15:50:43 UTC) #48
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 7 months ago (2017-05-04 17:26:57 UTC) #49
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
3 years, 7 months ago (2017-05-04 17:26:58 UTC) #50
Noel Gordon
3 years, 7 months ago (2017-05-15 02:41:54 UTC) #51
Description was changed from

==========
Convert render process component common Spellcheck IPC to mojo

Add a render process mojo interface exposed to the browser for
receiving process-wide spellcheck control and updates from the
browser process.

Fold the enable IPC into the Initialize() mojo API (the enable
IPC was only ever called right after an Init IPC) by adding an
|enable| argument. Mojo does not support set<> so use vector<>
instead on the mojo APIs. Use a binding set on the server-side
to automate mojo client request disconnect and clean-up.

Update the browser test to use mojo instead of IPC in the mock
renderer and add a test for a custom dictionary update. Change
the InitSpellcheck helper: spellcheck->InitForRenderer() isn't
needed (creating a SpellcheckService does that for us).

BUG=714480
==========

to

==========
Convert render process component common Spellcheck IPC to mojo

Add a render process mojo interface exposed to the browser for
receiving process-wide spellcheck control and updates from the
browser process.

Fold the enable IPC into the Initialize() mojo API (the enable
IPC was only ever called right after an Init IPC) by adding an
|enable| argument. Mojo does not support set<> so use vector<>
instead on the mojo APIs. Use a binding set on the server-side
to automate mojo client request disconnect and clean-up.

Update the browser test to use mojo instead of IPC in the mock
renderer and add a test for a custom dictionary update. Change
the InitSpellcheck helper: spellcheck->InitForRenderer() isn't
needed (creating a SpellcheckService does that for us).

Uploaded and landed in Gerrit
  https://chromium-review.googlesource.com/c/487341

BUG=714480
==========

Powered by Google App Engine
This is Rietveld 408576698