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

Issue 2255043002: Remove input methods when removing languages (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 4 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove input methods when removing languages When a user disables a language, we should remove input methods for that language. We don't want to remove input methods that *also* support a *different* enabled language, because those could still be desirable. The bug is that this check was incorrect, creating false positives where we ought to remove an input method, but don't. Options does this correctly. MD Settings has a logical bug: any input method with more than one *supported* language doesn't get removed when removing the last *enabled* language that it supports. The fix is trivial and I added a test that would have caught the bug. BUG=none TEST=CrSettingsLanguages CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/749d9ceb83b5c75012e31b0d0c1e3ea7ea8a60f2 Cr-Commit-Position: refs/heads/master@{#412967}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -6 lines) Patch
M chrome/browser/resources/settings/languages_page/languages.js View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/test/data/webui/settings/fake_language_settings_private.js View 2 chunks +22 lines, -1 line 0 comments Download
M chrome/test/data/webui/settings/languages_page_tests.js View 1 chunk +23 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (6 generated)
michaelpg
4 years, 4 months ago (2016-08-18 02:03:03 UTC) #4
stevenjb
lgtm
4 years, 4 months ago (2016-08-18 16:05:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255043002/1
4 years, 4 months ago (2016-08-18 21:46:36 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-18 23:17:53 UTC) #9
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 23:24:45 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/749d9ceb83b5c75012e31b0d0c1e3ea7ea8a60f2
Cr-Commit-Position: refs/heads/master@{#412967}

Powered by Google App Engine
This is Rietveld 408576698