commit | 423bc8f5bf7aec04e5489bc7e643e6a89faaab11 | [log] [tgz] |
---|---|---|
author | My Nguyen <myy@chromium.org> | Thu Sep 10 14:17:32 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Sep 10 14:17:32 2020 |
tree | 0cbe0f75b88b240d3ad9837e927f8b4df418b818 | |
parent | f9edd96968c8341865e139b62a8e76514d473fb3 [diff] |
[OsSettingsLanguages] Update spellcheck pref when dictionary is empty The logic in settings side is added in https://crrev.com/c/1600384. Main logic is to turn off kSpellcheckEnable when spell check is off for the 1 supported language. This is equivalent to turning off kSpellcheckEnable when hun_dictionaries is empty as it has similar origin to spellCheckEnable. They both come from users' spellcheck dictionaries pref, forced and blocked dictionaries list. More background: http://go/cros-lang-settings-spell-check-migrate Update the test in languages_page_test.js to better reflect users's action. Side effect: Originally, when users turn off spell check for all languages, spell check is left on. Now, when they turn the last one off, spell check is off as well. Related CL: https://crrev.com/c/2360093 Drive-by: Remove unused SetSingleLanguageDictionary function in test. Bug: 1113439 Change-Id: Id8700c3b357da53e22e5f79420b163c8ef50b2d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2390300 Reviewed-by: Guillaume Jenkins <gujen@google.com> Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: My Nguyen <myy@chromium.org> Cr-Commit-Position: refs/heads/master@{#805734}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.