Use Windows spell checker unconditionally. [chromium/src : main]

6 views
Skip to first unread message

David Bienvenu (Gerrit)

unread,
Feb 3, 2023, 2:24:36 PM2/3/23
to Guillaume Jenkins, chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org

Attention is currently required from: Guillaume Jenkins.

David Bienvenu would like Guillaume Jenkins to review this change.

View Change

Use Windows spell checker unconditionally.

Now that Chrome no longer supports Win7, Chrome on Windows can use
the Windows spell checker unconditionally. This CL removes the kWinUseBrowserSpellChecker feature, which launched a while ago, and
makes UseBrowserSpellChecker() always return true on Windows.

In a follow-on CL, I'll remove the calls to UseBrowserSpellChecker in
Windows-only code.

Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
---
M chrome/browser/extensions/api/language_settings_private/language_settings_private_api_unittest.cc
M chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate_unittest.cc
M chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc
M chrome/browser/site_isolation/spellcheck_per_process_browsertest.cc
M chrome/browser/spellchecker/spell_check_host_chrome_impl_win_browsertest.cc
M chrome/browser/spellchecker/spellcheck_language_policy_handlers_unittest.cc
M chrome/browser/spellchecker/spellcheck_service_browsertest.cc
M chrome/browser/spellchecker/spellcheck_service_unittest.cc
M components/spellcheck/browser/windows_spell_checker_unittest.cc
M components/spellcheck/common/spellcheck_features.cc
M components/spellcheck/common/spellcheck_features.h
M components/spellcheck/renderer/spellcheck_provider_hunspell_unittest.cc
M components/spellcheck/renderer/spellcheck_provider_unittest.cc
13 files changed, 146 insertions(+), 191 deletions(-)


To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-Attention: Guillaume Jenkins <gu...@google.com>
Gerrit-MessageType: newchange

David Bienvenu (Gerrit)

unread,
Feb 3, 2023, 2:24:41 PM2/3/23
to chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Guillaume Jenkins, Tricium, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Guillaume Jenkins.

View Change

1 comment:

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-Attention: Guillaume Jenkins <gu...@google.com>
Gerrit-Comment-Date: Fri, 03 Feb 2023 19:24:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Guillaume Jenkins (Gerrit)

unread,
Feb 3, 2023, 2:40:11 PM2/3/23
to chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Francois Pierre Doray, David Bienvenu

Attention is currently required from: David Bienvenu, Francois Pierre Doray.

David Bienvenu has uploaded this change for review.

View Change

Use Windows spell checker unconditionally.

Now that Chrome no longer supports Win7, Chrome on Windows can use
the Windows spell checker unconditionally. This CL removes the kWinUseBrowserSpellChecker feature, which launched a while ago, and
makes UseBrowserSpellChecker() always return true on Windows.

In a follow-on CL, I'll remove the calls to UseBrowserSpellChecker in
Windows-only code.

Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
---
M chrome/browser/extensions/api/language_settings_private/language_settings_private_api_unittest.cc
M chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate_unittest.cc
M chrome/browser/renderer_context_menu/spelling_menu_observer_browsertest.cc
M chrome/browser/site_isolation/spellcheck_per_process_browsertest.cc
M chrome/browser/spellchecker/spell_check_host_chrome_impl_win_browsertest.cc
M chrome/browser/spellchecker/spellcheck_language_policy_handlers_unittest.cc
M chrome/browser/spellchecker/spellcheck_service_browsertest.cc
M chrome/browser/spellchecker/spellcheck_service_unittest.cc
M components/spellcheck/browser/windows_spell_checker_unittest.cc
M components/spellcheck/common/spellcheck_features.cc
M components/spellcheck/common/spellcheck_features.h
M components/spellcheck/renderer/spellcheck_provider_hunspell_unittest.cc
M components/spellcheck/renderer/spellcheck_provider_unittest.cc
13 files changed, 146 insertions(+), 191 deletions(-)


To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: David Bienvenu <davidb...@chromium.org>
Gerrit-MessageType: newchange

Guillaume Jenkins (Gerrit)

unread,
Feb 3, 2023, 2:40:15 PM2/3/23
to David Bienvenu, chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Francois Pierre Doray, Tricium, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: David Bienvenu, Francois Pierre Doray.

View Change

1 comment:

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: David Bienvenu <davidb...@chromium.org>
Gerrit-Comment-Date: Fri, 03 Feb 2023 19:40:07 +0000

David Bienvenu (Gerrit)

unread,
Feb 3, 2023, 3:37:50 PM2/3/23
to chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Francois Pierre Doray, Guillaume Jenkins, Tricium, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Francois Pierre Doray, Guillaume Jenkins.

View Change

1 comment:

  • Patchset:

    • Patch Set #11:

      Thanks for doing this! @fdo...@chromium.org already sent a CL this week for the same thing: […]

      Ha, well, I'd defer to fdoray's CL, since I assume you want the Hunspell dictionary tests on Windows, which my CL defers on.

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Guillaume Jenkins <gu...@google.com>
Gerrit-Comment-Date: Fri, 03 Feb 2023 20:37:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Guillaume Jenkins <gu...@google.com>
Gerrit-MessageType: comment

Francois Pierre Doray (Gerrit)

unread,
Feb 6, 2023, 9:44:27 AM2/6/23
to David Bienvenu, chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Guillaume Jenkins, Tricium, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: David Bienvenu, Guillaume Jenkins.

View Change

1 comment:

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: David Bienvenu <davidb...@chromium.org>
Gerrit-Attention: Guillaume Jenkins <gu...@google.com>
Gerrit-Comment-Date: Mon, 06 Feb 2023 14:44:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

David Bienvenu (Gerrit)

unread,
Feb 6, 2023, 6:10:17 PM2/6/23
to chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Francois Pierre Doray, Guillaume Jenkins, Tricium, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Francois Pierre Doray, Guillaume Jenkins.

View Change

1 comment:

  • File chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate_unittest.cc:

    • The CL I wrote uses a boolean to disable the browser spell checker when running these tests on Windo […]

      My understanding from a comment I ran across in the code is that Hunspell supports languages that Windows does not, or at least it did at some point. I have no idea if it's true, or if for some reason language packs might not be installed. It might be interesting to emit a metric when we do fallback to Hunspell on Windows, along with the locale that required the fallback.

      But, for now, I think we should keep testing these code paths.

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Guillaume Jenkins <gu...@google.com>
Gerrit-Comment-Date: Mon, 06 Feb 2023 23:10:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-MessageType: comment

David Bienvenu (Gerrit)

unread,
Feb 6, 2023, 6:16:57 PM2/6/23
to chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Francois Pierre Doray, Guillaume Jenkins, Tricium, Chromium LUCI CQ, chromium...@chromium.org

David Bienvenu abandoned this change.

View Change

Abandoned abandoned in favor of crrev.com/c/4188827

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-MessageType: abandon

Guillaume Jenkins (Gerrit)

unread,
Feb 7, 2023, 9:48:08 AM2/7/23
to David Bienvenu, chromium-a...@chromium.org, extension...@chromium.org, rlp+...@chromium.org, rousla...@chromium.org, Francois Pierre Doray, Tricium, Chromium LUCI CQ, chromium...@chromium.org

View Change

1 comment:

  • File chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate_unittest.cc:

    • My understanding from a comment I ran across in the code is that Hunspell supports languages that Wi […]

      Yes, Chrome first tries to use the native spell checker, and if the required language packs are not installed, will use Hunspell instead. This choice happens on a per-language basis in multi-language spell checking context, meaning e.g. Chrome can use the native spell checker for English, but Hunspell for French (called "hybrid" spell checking in the code)

      The following metrics indicate how many spell check requests are fully handled by native, by Hunspell, or by both (well, they measure the duration, but you can use the unique client count to get an idea of how often Hunspell is needed):
      https://uma.googleplex.com/p/chrome/timeline_v2?sid=9cabd4331b2ae05917c3d71d31923c9d

To view, visit change 4205939. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib03164cd9335267cfe8c7c637afbe7e9ea28e07a
Gerrit-Change-Number: 4205939
Gerrit-PatchSet: 11
Gerrit-Owner: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: David Bienvenu <davidb...@chromium.org>
Gerrit-Reviewer: Guillaume Jenkins <gu...@google.com>
Gerrit-CC: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Comment-Date: Tue, 07 Feb 2023 14:47:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Francois Pierre Doray <fdo...@chromium.org>
Comment-In-Reply-To: David Bienvenu <davidb...@chromium.org>
Gerrit-MessageType: comment
Reply all
Reply to author
Forward
0 new messages