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

Issue 1230933002: Patch 3.1: Refactored spellcheck_message_filter to be generic (Closed)

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

Description

Refactored spellcheck_message_filter to be generic. The header is now meant to be an interface for any system that would like to use its own spellchecker instead of the hunspell library. Split the implementation into two source files, one for mac and one for android. The android implementation is just method stubs for now. Updated related build files and #include references. Part 1 of a 3 part breakdown of https://codereview.chromium.org/1204293003. The breakdown will also include some changes to the original CL. BUG=415302 Committed: https://crrev.com/684453c5ecb33796629becb77b64591d939e4458 Cr-Commit-Position: refs/heads/master@{#339195}

Patch Set 1 #

Patch Set 2 : Reverted a changed reference to a class that wasn't changed #

Total comments: 36

Patch Set 3 : Addressed some comments from rouslan@ #

Patch Set 4 : Addressed the rest of the comments from rouslan@ #

Total comments: 32

Patch Set 5 : Deleted extra #includes, some style changes #

Patch Set 6 : More outdated reference fixes, build config fixes for gn #

Total comments: 10

Patch Set 7 : Changes to #includes, build files #

Patch Set 8 : Added spellcheck_common back in the build to facilitate linking #

Patch Set 9 : Enabled spellchecking and preprocessor flag in gyp #

Patch Set 10 : Put spellcheck_common back into the gyp build #

Patch Set 11 : #ifdef update for spellcheck_message_filter_unittest #

Patch Set 12 : More #ifdef updates in tests #

Patch Set 13 : Removed hunspell unit tests from Android's build #

Patch Set 14 : Removed hunspell unit tests from gn build #

Patch Set 15 : Rebase #

Patch Set 16 : Added enable-android-spellchecker chrome switch to histograms.xml to pass unit test #

Total comments: 2

Patch Set 17 : Small name fix #

Patch Set 18 : Small fix to changed symbol #

Total comments: 3

Patch Set 19 : Updated gn build variable to match gyp side #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -559 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -3 lines 0 comments Download
M build/config/features.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +6 lines, -3 lines 0 comments Download
D chrome/browser/spellchecker/spellcheck_message_filter_mac.h View 1 chunk +0 lines, -60 lines 0 comments Download
D chrome/browser/spellchecker/spellcheck_message_filter_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -315 lines 0 comments Download
D chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -63 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_message_filter_mac_unittest.cc View 1 2 3 1 chunk +0 lines, -63 lines 0 comments Download
A + chrome/browser/spellchecker/spellcheck_message_filter_platform.h View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
A chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A + chrome/browser/spellchecker/spellcheck_message_filter_platform_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +20 lines, -18 lines 0 comments Download
A + chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +7 lines, -6 lines 0 comments Download
A + chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_unittest.cc View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_message_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/spellchecker/spellcheck_provider_test.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (22 generated)
dylanking
5 years, 5 months ago (2015-07-09 22:04:11 UTC) #2
please use gerrit instead
Good start. You may want to run the patch through the try bots or "CQ ...
5 years, 5 months ago (2015-07-09 22:21:30 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/60001
5 years, 5 months ago (2015-07-09 23:48:07 UTC) #7
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 5 months ago (2015-07-09 23:48:10 UTC) #9
dylanking
I tried a dry-run, but it was automatically rejected because I'm not a full committer. ...
5 years, 5 months ago (2015-07-09 23:49:58 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/60001
5 years, 5 months ago (2015-07-10 00:08:39 UTC) #12
please use gerrit instead
https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc File chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc (right): https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc#newcode7 chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc:7: #include <algorithm> Please remove this unused #include. https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc#newcode8 chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc:8: ...
5 years, 5 months ago (2015-07-10 00:20:55 UTC) #14
please use gerrit instead
https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc File chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc (left): https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc#oldcode63 chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc:63: } Looks like you need to run "git rm ...
5 years, 5 months ago (2015-07-10 00:24:05 UTC) #15
dylanking
https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc File chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc (left): https://codereview.chromium.org/1230933002/diff/60001/chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc#oldcode63 chrome/browser/spellchecker/spellcheck_message_filter_mac_browsertest.cc:63: } 'git rm' does not recognize it as a ...
5 years, 5 months ago (2015-07-10 02:21:23 UTC) #16
please use gerrit instead
Almost finished. https://codereview.chromium.org/1230933002/diff/100001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc File chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc (right): https://codereview.chromium.org/1230933002/diff/100001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc#newcode7 chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc:7: #include "chrome/browser/spellchecker/spelling_service_client.h" This include is no longer ...
5 years, 5 months ago (2015-07-10 18:35:43 UTC) #17
dylanking
https://codereview.chromium.org/1230933002/diff/100001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc File chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc (right): https://codereview.chromium.org/1230933002/diff/100001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc#newcode7 chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc:7: #include "chrome/browser/spellchecker/spelling_service_client.h" Done. https://codereview.chromium.org/1230933002/diff/100001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc#newcode10 chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc:10: #include "content/public/browser/browser_context.h" Done. https://codereview.chromium.org/1230933002/diff/100001/chrome/browser/spellchecker/spellcheck_message_filter_platform_android.cc#newcode26 ...
5 years, 5 months ago (2015-07-11 01:46:24 UTC) #18
please use gerrit instead
Looking good overall. Please let me know when you fix the failing trybots for the ...
5 years, 5 months ago (2015-07-13 20:21:51 UTC) #19
dylanking
Took longer than expected, but it looks like all non-broken tests are (finally) passing.
5 years, 5 months ago (2015-07-14 20:01:01 UTC) #20
please use gerrit instead
LGTM Note that you need OWNER reviews for the following files: - build/common.gypi - build/config/features.gni ...
5 years, 5 months ago (2015-07-14 21:40:30 UTC) #21
please use gerrit instead
Oh, and fix one nit in spellcheck_message_filter_platform_mac_browsertest.cc please. https://codereview.chromium.org/1230933002/diff/290001/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_browsertest.cc File chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_browsertest.cc (right): https://codereview.chromium.org/1230933002/diff/290001/chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_browsertest.cc#newcode38 chrome/browser/spellchecker/spellcheck_message_filter_platform_mac_browsertest.cc:38: typedef ...
5 years, 5 months ago (2015-07-14 21:41:02 UTC) #22
dylanking
+thakis@ for owners review of: build/common.gypi build/config/features.gni chrome/common/BUILD.gn chrome/test/BUILD.gn +isherman@ for owners review of: tools/metrics/histograms/histograms.xml
5 years, 5 months ago (2015-07-15 18:18:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/310001
5 years, 5 months ago (2015-07-15 18:19:17 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/310001
5 years, 5 months ago (2015-07-15 18:21:21 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/74126)
5 years, 5 months ago (2015-07-15 18:38:07 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/140017
5 years, 5 months ago (2015-07-15 18:47:57 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-15 22:16:42 UTC) #38
Ilya Sherman
LGTM
5 years, 5 months ago (2015-07-16 01:41:25 UTC) #39
Nico
My files lgtm https://codereview.chromium.org/1230933002/diff/140017/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/1230933002/diff/140017/build/config/features.gni#newcode126 build/config/features.gni:126: enable_spellcheck = true If this is ...
5 years, 5 months ago (2015-07-16 20:36:51 UTC) #40
aurimas (slooooooooow)
https://codereview.chromium.org/1230933002/diff/140017/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/1230933002/diff/140017/build/config/features.gni#newcode126 build/config/features.gni:126: enable_spellcheck = true On 2015/07/16 at 20:36:51, Nico wrote: ...
5 years, 5 months ago (2015-07-16 20:37:40 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/140017
5 years, 5 months ago (2015-07-16 20:50:36 UTC) #44
Nico
https://codereview.chromium.org/1230933002/diff/140017/build/config/features.gni File build/config/features.gni (right): https://codereview.chromium.org/1230933002/diff/140017/build/config/features.gni#newcode126 build/config/features.gni:126: enable_spellcheck = true On 2015/07/16 20:37:40, aurimas wrote: > ...
5 years, 5 months ago (2015-07-16 20:56:42 UTC) #45
dylanking
> Can you change this to !is_ios then? The iOS gn build isn't functional yet, ...
5 years, 5 months ago (2015-07-16 22:13:51 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230933002/340001
5 years, 5 months ago (2015-07-16 22:27:42 UTC) #50
commit-bot: I haz the power
Committed patchset #19 (id:340001)
5 years, 5 months ago (2015-07-17 01:22:30 UTC) #51
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 01:24:41 UTC) #52
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/684453c5ecb33796629becb77b64591d939e4458
Cr-Commit-Position: refs/heads/master@{#339195}

Powered by Google App Engine
This is Rietveld 408576698