[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/+/2390300Reviewed-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}
Showing
Please register or sign in to comment